java.io.Closeable
, java.io.Flushable
, java.lang.AutoCloseable
, org.apache.http.io.SessionOutputBuffer
public class ByteArraySessionOutputBuffer
extends java.io.ByteArrayOutputStream
implements org.apache.http.io.SessionOutputBuffer
SessionOutputBuffer
implementation that uses a byte array as a backing store.Constructor | Description |
---|---|
ByteArraySessionOutputBuffer() |
Modifier and Type | Method | Description |
---|---|---|
long |
contentLength() |
|
void |
contentLength(long contentLength) |
|
org.apache.http.io.HttpTransportMetrics |
getMetrics() |
|
java.io.InputStream |
toInputStream() |
|
void |
writeLine(java.lang.String s) |
|
void |
writeLine(org.apache.http.util.CharArrayBuffer buffer) |
close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeTo
public java.io.InputStream toInputStream()
public long contentLength()
public void contentLength(long contentLength)
public void writeLine(java.lang.String s) throws java.io.IOException
writeLine
in interface org.apache.http.io.SessionOutputBuffer
java.io.IOException
public void writeLine(org.apache.http.util.CharArrayBuffer buffer) throws java.io.IOException
writeLine
in interface org.apache.http.io.SessionOutputBuffer
java.io.IOException
public org.apache.http.io.HttpTransportMetrics getMetrics()
getMetrics
in interface org.apache.http.io.SessionOutputBuffer