FreeHEP API
Version current

org.freehep.util.io
Class NoCloseOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.BufferedOutputStream
              extended byorg.freehep.util.io.NoCloseOutputStream

public class NoCloseOutputStream
extends BufferedOutputStream

The NoCloseOutputStream ignores the close so that one can keep writing to the underlying stream.

Version:
$Id: NoCloseOutputStream.java,v 1.1 2003/04/30 22:16:15 duns Exp $
Author:
Mark Donszelmann
Source Code:
NoCloseOutputStream.java

Field Summary
 
Fields inherited from class java.io.BufferedOutputStream
buf, count
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
NoCloseOutputStream(OutputStream stream)
           
NoCloseOutputStream(OutputStream stream, int size)
           
 
Method Summary
 void close()
           
 void realClose()
           
 
Methods inherited from class java.io.BufferedOutputStream
flush, write, write
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoCloseOutputStream

public NoCloseOutputStream(OutputStream stream)

NoCloseOutputStream

public NoCloseOutputStream(OutputStream stream,
                           int size)
Method Detail

close

public void close()
           throws IOException
Throws:
IOException

realClose

public void realClose()
               throws IOException
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.