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 OutputStream
IOException
public void write(byte[] buffer, int offset, int len) throws IOException
write
in class OutputStream
IOException
public void write(int oneByte) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void destroy()
public InputStream getInputStream() throws Exception
Exception
Copyright © 2018 City of Paris. All rights reserved.