Java org.apache.commons.io.output DeferredFileOutputStream fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.io.output DeferredFileOutputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.io.output DeferredFileOutputStream.

The text is from its open source code.

Constructor

DeferredFileOutputStream(int threshold, String prefix, String suffix, File directory)
Constructs an instance of this class which will trigger an event at the specified threshold, and save data to a temporary file beyond that point.
DeferredFileOutputStream(int threshold, File outputFile)
Constructs an instance of this class which will trigger an event at the specified threshold, and save data to a file beyond that point.

Method

voidclose()
Closes underlying output stream, and mark this as closed
voidflush()
Flushes this output stream and forces any buffered output bytes to be written out.
longgetByteCount()
Returns the number of bytes that have been written to this output stream.
byte[]getData()
Returns the data for this output stream as an array of bytes, assuming that the data has been retained in memory.
FilegetFile()
Returns either the output file specified in the constructor or the temporary file created or null.
intgetThreshold()
Returns the threshold, in bytes, at which an event will be triggered.
booleanisInMemory()
Determines whether or not the data for this output stream has been retained in memory.
booleanisThresholdExceeded()
Determines whether or not the configured threshold has been exceeded for this output stream.
voidwrite(int b)
Writes the specified byte to this output stream.
voidwriteTo(OutputStream out)
Writes the data from this output stream to the specified output stream, after it has been closed.