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 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 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.OutputStreamjava.io.IOExceptionprotected int availableMemorySpace()
protected java.io.BufferedOutputStream ensureFileOutput()
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOExceptionjava.io.FileNotFoundExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void checkClosed()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic int size()
public void writeData(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic java.io.InputStream getDataInputStream()
throws java.io.IOException
java.io.IOException© 2001-2010 Jaspersoft Corporation www.jaspersoft.com