Mercurial > hg > Applications > TightVNC_orginal
diff src/main/java/com/glavsoft/transport/Writer.java @ 17:718cdde720d4
add setInitData()
author | one |
---|---|
date | Tue, 28 Aug 2012 17:36:49 +0900 |
parents | 4689cc86d6cb |
children |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/transport/Writer.java Mon Aug 27 06:31:14 2012 +0900 +++ b/src/main/java/com/glavsoft/transport/Writer.java Tue Aug 28 17:36:49 2012 +0900 @@ -84,7 +84,7 @@ public void write(byte[] b) throws TransportException { write(b, 0, b.length); } - + public void write(byte[] b, int length) throws TransportException { write(b, 0, length); } @@ -97,4 +97,17 @@ throw new TransportException("Cannot write " + length + " bytes", e); } } + + public void close() throws IOException { + os.close(); + } + + public void writeInt(int i) throws TransportException { + try { + os.write(i); + } catch (IOException e) { + throw new TransportException("Cannot write int", e); + } + } + } \ No newline at end of file