net.i2p.i2ptunnel
class HTTPResponseOutputStream extends FilterOutputStream
Modifier and Type | Field and Description |
---|---|
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 static String |
filterResponseLine(String line)
Tweak that first HTTP response line (HTTP 200 OK, etc)
|
protected void |
finishHeaders() |
protected boolean |
shouldCompress() |
String |
toString() |
void |
write(byte[] buf) |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int c) |
flush
protected ByteArray _headerBuffer
protected boolean _gzip
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 static String filterResponseLine(String line)
protected boolean shouldCompress()
protected void finishHeaders() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in class FilterOutputStream
IOException
protected void beginProcessing() throws IOException
IOException