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
-
Field Summary
Modifier and TypeFieldDescriptionprotected OutputStream
protected CommitHeaderOutputStream.CommitCallback
protected boolean
-
Constructor Summary
ConstructorDescriptionCommitHeaderOutputStream
(OutputStream delegate, CommitHeaderOutputStream.CommitCallback headers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
commit()
void
flush()
void
setDelegate
(OutputStream delegate) void
void
write
(byte[] bytes) void
write
(byte[] bytes, int i, int i1) void
write
(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:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-