class HTTPResponseOutputStream extends FilterOutputStream
Modifier and Type | Field and Description |
---|---|
protected String |
_contentEncoding
lower-case, trimmed
|
protected String |
_contentType
lower-case, trimmed
|
protected long |
_dataExpected |
protected boolean |
_gzip |
protected ByteArray |
_headerBuffer |
out
Constructor and Description |
---|
HTTPResponseOutputStream(OutputStream raw) |
Modifier and Type | Method and Description |
---|---|
protected void |
beginProcessing() |
void |
close() |
protected String |
filterResponseLine(String line)
Possibly tweak that first HTTP response line (HTTP/1.0 200 OK, etc).
|
protected void |
finishHeaders() |
protected boolean |
shouldCompress() |
void |
write(byte[] buf) |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int c) |
flush
protected ByteArray _headerBuffer
protected boolean _gzip
protected long _dataExpected
protected String _contentType
protected String _contentEncoding
public HTTPResponseOutputStream(OutputStream raw)
public void write(int c) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] buf) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] buf, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
protected String filterResponseLine(String line)
protected boolean shouldCompress()
protected void finishHeaders() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
protected void beginProcessing() throws IOException
IOException