public class FileBufferedOutputStream
extends java.io.OutputStream
Modifier and Type | Class and Description |
---|---|
protected class |
FileBufferedOutputStream.DataStream |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INITIAL_MEMORY_BUFFER_SIZE |
static int |
DEFAULT_INPUT_BUFFER_LENGTH |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_OUTPUT_STREAM_ALREADY_CLOSED |
static int |
INFINIT_MEMORY_THRESHOLD |
static java.lang.String |
PROPERTY_MEMORY_THRESHOLD
Specifies the maximum in-memory buffer length that triggers the creation of a temporary file on disk to store further content sent to this output stream.
|
Constructor and Description |
---|
FileBufferedOutputStream() |
FileBufferedOutputStream(int memoryThreshold) |
FileBufferedOutputStream(int memoryThreshold,
int initialMemoryBufferSize) |
FileBufferedOutputStream(int memoryThreshold,
int initialMemoryBufferSize,
int inputBufferLength) |
Modifier and Type | Method and Description |
---|---|
protected int |
availableMemorySpace() |
void |
checkClosed() |
void |
close() |
void |
dispose() |
protected java.io.BufferedOutputStream |
ensureFileOutput() |
protected void |
finalize() |
void |
flush() |
java.io.InputStream |
getDataInputStream() |
int |
size() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeData(java.io.OutputStream out) |
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OUTPUT_STREAM_ALREADY_CLOSED
public static final java.lang.String PROPERTY_MEMORY_THRESHOLD
public static final int INFINIT_MEMORY_THRESHOLD
public static final int DEFAULT_INITIAL_MEMORY_BUFFER_SIZE
public static final int DEFAULT_INPUT_BUFFER_LENGTH
public FileBufferedOutputStream()
public FileBufferedOutputStream(int memoryThreshold)
public FileBufferedOutputStream(int memoryThreshold, int initialMemoryBufferSize)
public FileBufferedOutputStream(int memoryThreshold, int initialMemoryBufferSize, int inputBufferLength)
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
protected int availableMemorySpace()
protected java.io.BufferedOutputStream ensureFileOutput() throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void checkClosed()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public int size()
public void writeData(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void dispose()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.io.InputStream getDataInputStream() throws java.io.IOException
java.io.IOException
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com