org.sblim.cimclient.internal.http.io
Class PersistentOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.sblim.cimclient.internal.http.io.PersistentOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class PersistentOutputStream
extends FilterOutputStream

Class PersistentOutputStream implements an output stream for which close() can be disabled.


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
PersistentOutputStream(OutputStream pStream)
          Ctor.
PersistentOutputStream(OutputStream pStream, boolean pClosable)
          Ctor.
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentOutputStream

public PersistentOutputStream(OutputStream pStream)
Ctor.

Parameters:
pStream - The underlying stream

PersistentOutputStream

public PersistentOutputStream(OutputStream pStream,
                              boolean pClosable)
Ctor.

Parameters:
pStream - The underlying stream
pClosable - If false this stream will ignore calls to the close() method.
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterOutputStream
Throws:
IOException


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.