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) |
flushprotected 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 FilterOutputStreamIOExceptionpublic void write(byte[] buf)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] buf,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionprotected String filterResponseLine(String line)
protected boolean shouldCompress()
protected void finishHeaders()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionprotected void beginProcessing()
throws IOException
IOException