FileDocCategorySizeDatePackage
CompressionSocket.javaAPI DocExample2871Wed Apr 19 11:20:14 BST 2000examples.rmisocfac

CompressionSocket

public class CompressionSocket extends Socket

Fields Summary
private InputStream
in
private OutputStream
out
Constructors Summary
public CompressionSocket()

 super(); 
public CompressionSocket(String host, int port)

        super(host, port);
    
Methods Summary
public synchronized voidclose()

        OutputStream o = getOutputStream();
        o.flush();
	super.close();
    
public java.io.InputStreamgetInputStream()

        if (in == null) {
            in = new CompressionInputStream(super.getInputStream());
        }
        return in;
    
public java.io.OutputStreamgetOutputStream()

        if (out == null) {
            out = new CompressionOutputStream(super.getOutputStream());
        }
        return out;