Package org.jboss.resteasy.util
Class CommitHeaderOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.jboss.resteasy.util.CommitHeaderOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
GZIPEncodingInterceptor.CommittedGZIPOutputStream
public class CommitHeaderOutputStream extends OutputStream
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCommitHeaderOutputStream.CommitCallback
-
Field Summary
Fields Modifier and Type Field Description protected OutputStreamdelegateprotected CommitHeaderOutputStream.CommitCallbackheadersprotected booleanisHeadersCommitted
-
Constructor Summary
Constructors Constructor Description CommitHeaderOutputStream()CommitHeaderOutputStream(OutputStream delegate, CommitHeaderOutputStream.CommitCallback headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcommit()voidflush()OutputStreamgetDelegate()voidsetDelegate(OutputStream delegate)voidsetHeaders(CommitHeaderOutputStream.CommitCallback headers)voidwrite(byte[] bytes)voidwrite(byte[] bytes, int i, int i1)voidwrite(int i)
-
-
-
Field Detail
-
delegate
protected OutputStream delegate
-
isHeadersCommitted
protected boolean isHeadersCommitted
-
headers
protected CommitHeaderOutputStream.CommitCallback headers
-
-
Constructor Detail
-
CommitHeaderOutputStream
public CommitHeaderOutputStream(OutputStream delegate, CommitHeaderOutputStream.CommitCallback headers)
-
CommitHeaderOutputStream
public CommitHeaderOutputStream()
-
-
Method Detail
-
getDelegate
public OutputStream getDelegate()
-
setDelegate
public void setDelegate(OutputStream delegate)
-
setHeaders
public void setHeaders(CommitHeaderOutputStream.CommitCallback headers)
-
commit
public void commit()
-
write
public void write(int i) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] bytes) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] bytes, int i, int i1) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-