|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream org.apache.camel.converter.stream.CachedOutputStream
public class CachedOutputStream
This output stream will store the content into a File if the stream context size is exceed the
THRESHOLD value. The default THRESHOLD value is StreamCache.DEFAULT_SPOOL_THRESHOLD
bytes .
Field Summary | |
---|---|
static String |
BUFFER_SIZE
Deprecated. |
static String |
CIPHER_TRANSFORMATION
Deprecated. |
static String |
TEMP_DIR
Deprecated. |
static String |
THRESHOLD
Deprecated. |
Constructor Summary | |
---|---|
CachedOutputStream(Exchange exchange)
|
|
CachedOutputStream(Exchange exchange,
boolean closedOnCompletion)
|
Method Summary | |
---|---|
void |
close()
|
boolean |
equals(Object obj)
|
void |
flush()
|
int |
getBufferSize()
Deprecated. use getStrategyBufferSize() |
OutputStream |
getCurrentStream()
|
InputStream |
getInputStream()
|
int |
getStrategyBufferSize()
|
StreamCache |
getStreamCache()
Deprecated. use newStreamCache() |
InputStream |
getWrappedInputStream()
|
int |
hashCode()
|
StreamCache |
newStreamCache()
Creates a new StreamCache from the data cached in this OutputStream . |
String |
toString()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final String THRESHOLD
@Deprecated public static final String BUFFER_SIZE
@Deprecated public static final String TEMP_DIR
@Deprecated public static final String CIPHER_TRANSFORMATION
Constructor Detail |
---|
public CachedOutputStream(Exchange exchange)
public CachedOutputStream(Exchange exchange, boolean closedOnCompletion)
Method Detail |
---|
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 class OutputStream
IOException
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public OutputStream getCurrentStream()
public String toString()
toString
in class Object
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public InputStream getInputStream() throws IOException
IOException
public InputStream getWrappedInputStream() throws IOException
IOException
@Deprecated public StreamCache getStreamCache() throws IOException
newStreamCache()
IOException
public StreamCache newStreamCache() throws IOException
StreamCache
from the data cached in this OutputStream
.
IOException
@Deprecated public int getBufferSize()
getStrategyBufferSize()
public int getStrategyBufferSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |