Mercurial > hg > Applications > TightVNC_orginal
comparison src/main/java/com/glavsoft/transport/Writer.java @ 52:472a9bcacb21 draft default tip
TightVNC 2.7.1.0
author | you@cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 07 Aug 2013 19:01:17 +0900 |
parents | 4689cc86d6cb |
children |
comparison
equal
deleted
inserted
replaced
0:4689cc86d6cb | 52:472a9bcacb21 |
---|---|
1 // Copyright (C) 2010, 2011 GlavSoft LLC. | 1 // Copyright (C) 2010, 2011, 2012, 2013 GlavSoft LLC. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 //------------------------------------------------------------------------- | 4 //------------------------------------------------------------------------- |
5 // This file is part of the TightVNC software. Please visit our Web site: | 5 // This file is part of the TightVNC software. Please visit our Web site: |
6 // | 6 // |
71 | 71 |
72 public void writeInt32(int i) throws TransportException { | 72 public void writeInt32(int i) throws TransportException { |
73 write(i); | 73 write(i); |
74 } | 74 } |
75 | 75 |
76 public void writeInt64(long i) throws TransportException { | |
77 try { | |
78 os.writeLong(i); | |
79 } catch (IOException e) { | |
80 throw new TransportException("Cannot write long", e); | |
81 } | |
82 } | |
83 | |
76 public void write(int i) throws TransportException { | 84 public void write(int i) throws TransportException { |
77 try { | 85 try { |
78 os.writeInt(i); | 86 os.writeInt(i); |
79 } catch (IOException e) { | 87 } catch (IOException e) { |
80 throw new TransportException("Cannot write int", e); | 88 throw new TransportException("Cannot write int", e); |