public class ThresholdOutputStream extends OutputStream
getInputStream() is called or call destroy() if the
InputStream isn't required!| Modifier and Type | Class and Description |
|---|---|
static interface |
ThresholdOutputStream.ThresholdInputStream
Provides information about the input stream.
|
| Constructor and Description |
|---|
ThresholdOutputStream(File tempDir,
int memoryThreshold) |
ThresholdOutputStream(int initSize,
File tempDir,
int memoryThreshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy()
Destroys the object before it has been read.
|
void |
flush() |
InputStream |
getInputStream()
Returns the data as an InputStream.
|
long |
getSize() |
void |
write(byte[] buffer) |
void |
write(byte[] buffer,
int offset,
int len) |
void |
write(int oneByte) |
public ThresholdOutputStream(File tempDir, int memoryThreshold)
public ThresholdOutputStream(int initSize,
File tempDir,
int memoryThreshold)
public long getSize()
public void write(byte[] buffer)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buffer,
int offset,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int oneByte)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void destroy()
public InputStream getInputStream() throws Exception
ExceptionCopyright © 2018 City of Paris. All rights reserved.