Example usage for Java com.google.common.io FileBackedOutputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
FileBackedOutputStream(int fileThreshold) Creates a new instance that uses the given file threshold, and does not reset the data when the ByteSource returned by #asByteSource is finalized. | |
FileBackedOutputStream(int fileThreshold, boolean resetOnFinalize) Creates a new instance that uses the given file threshold, and optionally resets the data when the ByteSource returned by #asByteSource is finalized. |
ByteSource | asByteSource() Returns a readable ByteSource view of the data that has been written to this stream. |
void | close() |
void | reset() Calls #close if not already closed, and then resets this object back to its initial state, for reuse. |