FileDocCategorySizeDatePackage
NetworkBaseClass.javaAPI DocExample986Thu Nov 08 00:23:44 GMT 2001com.ora.rmibook.chapter3

NetworkBaseClass

public abstract class NetworkBaseClass extends Object

Fields Summary
public static final String
DEFAULT_SERVER_NAME
public static final int
DEFAULT_SERVER_PORT
public static final int
DEFAULT_SERVER_BACKLOG
Constructors Summary
Methods Summary
public voidcloseSocket(java.net.Socket socket)


        
        if (null != socket) {
            try {
                socket.close();
            } catch (IOException exception) {
            }
        }
    
public voidcloseStream(java.io.InputStream stream)

        if (null != stream) {
            try {
                stream.close();
            } catch (IOException exception) {
            }
        }
    
public voidcloseStream(java.io.OutputStream stream)

        if (null != stream) {
            try {
                stream.flush();
                stream.close();
            } catch (IOException exception) {
            }
        }