public class CacheAndWriteOutputStream extends CachedOutputStream
currentStream, outputLocked| Constructor and Description |
|---|
CacheAndWriteOutputStream(java.io.OutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeFlowthroughStream() |
java.io.OutputStream |
getFlowThroughStream() |
protected void |
onWrite() |
protected void |
postClose()
Perform any actions required after stream closure (close the other related stream etc.)
|
void |
setCacheLimit(long l) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, copyStream, deregisterCallback, doClose, doFlush, equals, flush, getBytes, getCallbacks, getInputStream, getOut, getTempFile, getThreshold, hashCode, holdTempFile, isThresholdSysPropSet, lockOutputStream, registerCallback, releaseTempFileHold, resetOut, setCipherTransformation, setDefaultCipherTransformation, setDefaultMaxSize, setDefaultThreshold, setMaxSize, setOutputDir, setThreshold, size, toString, writeCacheTo, writeCacheTo, writeCacheTo, writeCacheTo, writeCacheTopublic CacheAndWriteOutputStream(java.io.OutputStream stream)
public void setCacheLimit(long l)
public void closeFlowthroughStream()
throws java.io.IOException
java.io.IOExceptionprotected void postClose()
throws java.io.IOException
CachedOutputStreampostClose in class CachedOutputStreamjava.io.IOExceptionpublic java.io.OutputStream getFlowThroughStream()
protected void onWrite()
throws java.io.IOException
onWrite in class CachedOutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class CachedOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class CachedOutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class CachedOutputStreamjava.io.IOException