Changeset 233 for trunk/vnc/vnc_javasrc/SocketWrapper.java
- Timestamp:
- Nov 12, 2007, 12:09:45 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vnc/vnc_javasrc/SocketWrapper.java
- Property svn:keywords set to Rev
r143 r233 38 38 super(new WrappingSocketImpl(delegate)); 39 39 this.delegate = delegate; 40 System.out.println("Creating SocketWrapper $Rev$"); 40 41 } 41 42 … … 137 138 138 139 protected void close() throws IOException { 140 System.out.println("Calling delegate.close"); 139 141 delegate.close(); 140 142 } … … 241 243 } 242 244 245 public void close() throws IOException { 246 System.out.println("Calling SocketWrapper.delegate.close"); 247 delegate.close(); 248 } 249 243 250 public boolean equals(Object obj) { 244 251 if (!(obj instanceof SocketWrapper)) return false; … … 250 257 return delegate.hashCode() ^ 0x01010101; 251 258 } 259 public String toString() { 260 return "<SocketWrapper " + super.toString() + "(delegating to " + delegate.toString() + ")" + ">"; 261 } 252 262 }
Note: See TracChangeset
for help on using the changeset viewer.