1 8 package org.codehaus.spice.netserve.connection.handlers; 9 10 import java.net.Socket ; 11 import java.io.IOException ; 12 13 18 class ExceptionOnCloseSocket 19 extends Socket  20 { 21 static final IOException IO_EXCEPTION = new IOException (); 22 23 public boolean isConnected() 24 { 25 return true; 26 } 27 28 public synchronized void close() throws IOException  29 { 30 throw IO_EXCEPTION; 31 } 32 } 33 | Popular Tags |