Class PersistentOutputStream

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

public class PersistentOutputStream extends java.io.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

    Constructors
    Constructor
    Description
    PersistentOutputStream(java.io.OutputStream pStream)
    Ctor.
    PersistentOutputStream(java.io.OutputStream pStream, boolean pClosable)
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class java.io.FilterOutputStream

    flush, write, write, write

    Methods inherited from class java.io.OutputStream

    nullOutputStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PersistentOutputStream

      public PersistentOutputStream(java.io.OutputStream pStream)
      Ctor.
      Parameters:
      pStream - The underlying stream
    • PersistentOutputStream

      public PersistentOutputStream(java.io.OutputStream pStream, boolean pClosable)
      Ctor.
      Parameters:
      pStream - The underlying stream
      pClosable - If false this stream will ignore calls to the close() method.
  • Method Details

    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Overrides:
      close in class java.io.FilterOutputStream
      Throws:
      java.io.IOException