Class SOOutputStream

java.lang.Object
java.io.OutputStream
com.artifex.solib.SOOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class SOOutputStream extends OutputStream
This class implements an OutputStream that can be used to write to both regular and secure files.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes this input stream and releases any system resources associated with the stream.
    void
    Flushes this output stream and forces any buffered output bytes to be written out.
    void
    write(byte[] b)
    Writes b.length bytes from the specified byte array to this output stream.
    void
    write(byte[] b, int off, int len)
    Writes len bytes from the specified byte array starting at offset off to this output stream.
    void
    write(int b)
    Writes the specified byte to this output stream.

    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

    • SOOutputStream

      public SOOutputStream(String path)
      Constructor
      Parameters:
      path - Full path to the 'input' file.
  • Method Details

    • close

      public void close()
      Closes this input stream and releases any system resources associated with the stream.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream
    • flush

      public void flush()
      Flushes this output stream and forces any buffered output bytes to be written out.
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class OutputStream
    • write

      public void write(byte[] b)
      Writes b.length bytes from the specified byte array to this output stream.
      Overrides:
      write in class OutputStream
    • write

      public void write(byte[] b, int off, int len)
      Writes len bytes from the specified byte array starting at offset off to this output stream.
      Overrides:
      write in class OutputStream
      Parameters:
      b - The data.
      off - The start offset in the data.
      len - The number of bytes to write.
    • write

      public void write(int b)
      Writes the specified byte to this output stream.
      Specified by:
      write in class OutputStream
      Parameters:
      b - The byte