public class CachedOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
static String |
PROPERTY_BASE_PATH |
| Constructor and Description |
|---|
CachedOutputStream() |
CachedOutputStream(long threshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
discard() |
void |
flush() |
void |
lockOutputStream()
Locks the output stream to prevent additional writes, but maintains a pointer to it so an InputStream can be
obtained
|
long |
size() |
InputStream |
toInputStream() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public static final int DEFAULT_BUFFER_SIZE
public static final String PROPERTY_BASE_PATH
public CachedOutputStream()
public CachedOutputStream(long threshold)
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void lockOutputStream()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic long size()
public void discard()
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic InputStream toInputStream() throws IOException
IOExceptionCopyright © 2020 MuleSoft, Inc.. All rights reserved.