| java.lang.Object java.io.OutputStream org.apache.cxf.io.CachedOutputStream
Method Summary | |
public void | close() | public static void | copyStream(InputStream in, OutputStream out, int bufferSize) | public static void | copyStreamWithBase64Encoding(InputStream in, OutputStream out, int bufferSize) | public void | deregisterCallback(CachedOutputStreamCallback cb) | public void | dispose() | protected void | doClose() | protected void | doFlush() Perform any actions required on stream flush (freeze headers, reset
output stream ... | public boolean | equals(Object obj) | public void | flush() | public List<CachedOutputStreamCallback> | getCallbacks() | public InputStream | getInputStream() | public OutputStream | getOut() | public File | getTempFile() | public int | hashCode() | protected void | onWrite() | public void | registerCallback(CachedOutputStreamCallback cb) | public void | resetOut(OutputStream out, boolean copyOldContent) Replace the original stream with the new one, optionally copying the content of the old one
into the new one.
When with Attachment, needs to replace the xml writer stream with the stream used by
AttachmentSerializer or copy the cached output stream to the "real"
output stream, i.e. | public void | setOutputDir(File outputDir) | public void | setThreshold(long threshold) | public String | toString() | public void | write(byte[] b, int off, int len) | public void | write(byte[] b) | public void | write(int b) |
CachedOutputStream | public CachedOutputStream()(Code) | | |
dispose | public void dispose()(Code) | | |
doClose | protected void doClose() throws IOException(Code) | | Perform any actions required on stream closure (handle response etc.)
|
doFlush | protected void doFlush() throws IOException(Code) | | Perform any actions required on stream flush (freeze headers, reset
output stream ... etc.)
|
hashCode | public int hashCode()(Code) | | |
resetOut | public void resetOut(OutputStream out, boolean copyOldContent) throws IOException(Code) | | Replace the original stream with the new one, optionally copying the content of the old one
into the new one.
When with Attachment, needs to replace the xml writer stream with the stream used by
AttachmentSerializer or copy the cached output stream to the "real"
output stream, i.e. onto the wire.
Parameters: out - the new output stream Parameters: copyOldContent - flag indicating if the old content should be copied throws: IOException - |
setThreshold | public void setThreshold(long threshold)(Code) | | |
|
|