Java com.google.common.io FileBackedOutputStream fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.io FileBackedOutputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.io FileBackedOutputStream.

The text is from its open source code.

Constructor

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.

Method

ByteSourceasByteSource()
Returns a readable ByteSource view of the data that has been written to this stream.
voidclose()
voidreset()
Calls #close if not already closed, and then resets this object back to its initial state, for reuse.