FreeHEP API
Version current

org.freehep.util.io
Class NoCloseWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.BufferedWriter
          extended byorg.freehep.util.io.NoCloseWriter

public class NoCloseWriter
extends BufferedWriter

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

Version:
$Id: NoCloseWriter.java,v 1.1 2003/12/09 22:12:54 duns Exp $
Author:
Mark Donszelmann
Source Code:
NoCloseWriter.java

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
NoCloseWriter(Writer writer)
           
NoCloseWriter(Writer writer, int size)
           
 
Method Summary
 void close()
           
 void realClose()
           
 
Methods inherited from class java.io.BufferedWriter
flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoCloseWriter

public NoCloseWriter(Writer writer)

NoCloseWriter

public NoCloseWriter(Writer writer,
                     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.