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

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.sblim.cimclient.internal.http.io.PersistentInputStream
All Implemented Interfaces:
java.io.Closeable

public class PersistentInputStream
extends java.io.FilterInputStream

Class PersistentInputStream implements an input stream for which close() can be disabled.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
PersistentInputStream(java.io.InputStream pStream)
          Ctor.
PersistentInputStream(java.io.InputStream pStream, boolean pClosable)
          Ctor.
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentInputStream

public PersistentInputStream(java.io.InputStream pStream)
Ctor.

Parameters:
pStream - The underlying stream

PersistentInputStream

public PersistentInputStream(java.io.InputStream 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 java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterInputStream
Throws:
java.io.IOException


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