Package com.artifex.solib
Class SOOutputStream
java.lang.Object
java.io.OutputStream
com.artifex.solib.SOOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
This class implements an OutputStream that can be used to write to both
regular and secure files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this input stream and releases any system resources associated with the stream.voidflush()Flushes this output stream and forces any buffered output bytes to be written out.voidwrite(byte[] b) Writes b.length bytes from the specified byte array to this output stream.voidwrite(byte[] b, int off, int len) Writes len bytes from the specified byte array starting at offset off to this output stream.voidwrite(int b) Writes the specified byte to this output stream.Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
SOOutputStream
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
flush
public void flush()Flushes this output stream and forces any buffered output bytes to be written out.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-
write
public void write(byte[] b) Writes b.length bytes from the specified byte array to this output stream.- Overrides:
writein classOutputStream
-
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:
writein classOutputStream- 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:
writein classOutputStream- Parameters:
b- The byte
-