comparison src/main/java/com/glavsoft/transport/Reader.java @ 35:1b81deb0abb3

write a little part reconnection.
author one
date Wed, 12 Sep 2012 13:16:47 +0900
parents 718cdde720d4
children b7d4d0349f99
comparison
equal deleted inserted replaced
34:f70008073a03 35:1b81deb0abb3
45 } catch (EOFException e) { 45 } catch (EOFException e) {
46 throw new ClosedConnectionException(e); 46 throw new ClosedConnectionException(e);
47 } catch (IOException e) { 47 } catch (IOException e) {
48 throw new TransportException("Cannot read byte", e); 48 throw new TransportException("Cannot read byte", e);
49 } 49 }
50
51 } 50 }
52 51
53 public int readUInt8() throws TransportException { 52 public int readUInt8() throws TransportException {
54 return readByte() & 0x0ff; 53 return readByte() & 0x0ff;
55 } 54 }