Package org.jboss.resteasy.util
Class CommitHeaderOutputStream
java.lang.Object
java.io.OutputStream
org.jboss.resteasy.util.CommitHeaderOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OutputStreamprotected CommitHeaderOutputStream.CommitCallbackprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionCommitHeaderOutputStream(OutputStream delegate, CommitHeaderOutputStream.CommitCallback headers) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommit()voidflush()voidsetDelegate(OutputStream delegate) voidvoidwrite(byte[] bytes) voidwrite(byte[] bytes, int i, int i1) voidwrite(int i) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
delegate
-
isHeadersCommitted
protected boolean isHeadersCommitted -
headers
-
-
Constructor Details
-
CommitHeaderOutputStream
public CommitHeaderOutputStream(OutputStream delegate, CommitHeaderOutputStream.CommitCallback headers) -
CommitHeaderOutputStream
public CommitHeaderOutputStream()
-
-
Method Details
-
getDelegate
-
setDelegate
-
setHeaders
-
commit
public void commit() -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-