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 OutputStream
IOException
public void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes, int i, int i1) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.