FileDocCategorySizeDatePackage
NullOutputStream.javaAPI DocExample537Fri Feb 03 13:50:12 GMT 2006com.elharo.io

NullOutputStream

public class NullOutputStream extends OutputStream

Fields Summary
private boolean
closed
Constructors Summary
Methods Summary
public voidclose()

    closed = true;   
  
public voidwrite(int b)

  
    
        
    if (closed) throw new IOException("Write to closed stream");
  
public voidwrite(byte[] data, int offset, int length)

    if (data == null) throw new NullPointerException("data is null");
    if (closed) throw new IOException("Write to closed stream");