FileDocCategorySizeDatePackage
CompressingInputStream.javaAPI DocExample779Thu Nov 08 00:23:26 GMT 2001com.ora.rmibook.chapter2.sockets

CompressingInputStream

public class CompressingInputStream extends InputStream

Fields Summary
private InputStream
_actualInputStream
private GZIPInputStream
_delegate
Constructors Summary
public CompressingInputStream(InputStream actualInputStream)

        _actualInputStream = actualInputStream;
    
Methods Summary
public voidclose()

        if (null != _delegate) {
            _delegate.close();
        } else {
            _actualInputStream.close();
        }
    
public intread()

        if (null == _delegate) {
            _delegate = new GZIPInputStream(_actualInputStream);
        }
        return _delegate.read();