public class CommitHeaderOutputStream extends OutputStream
| Modifier and Type | Class and Description |
|---|---|
static interface |
CommitHeaderOutputStream.CommitCallback |
| Modifier and Type | Field and Description |
|---|---|
protected OutputStream |
delegate |
protected CommitHeaderOutputStream.CommitCallback |
headers |
protected boolean |
isHeadersCommitted |
| Constructor and Description |
|---|
CommitHeaderOutputStream() |
CommitHeaderOutputStream(OutputStream delegate,
CommitHeaderOutputStream.CommitCallback headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
void |
flush() |
OutputStream |
getDelegate() |
void |
setDelegate(OutputStream delegate) |
void |
setHeaders(CommitHeaderOutputStream.CommitCallback headers) |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int i,
int i1) |
void |
write(int i) |
protected OutputStream delegate
protected boolean isHeadersCommitted
protected CommitHeaderOutputStream.CommitCallback headers
public CommitHeaderOutputStream(OutputStream delegate, CommitHeaderOutputStream.CommitCallback headers)
public CommitHeaderOutputStream()
public OutputStream getDelegate()
public void setDelegate(OutputStream delegate)
public void setHeaders(CommitHeaderOutputStream.CommitCallback headers)
public void commit()
public void write(int i)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes,
int i,
int i1)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.