Methods Summary |
---|
public java.io.InputStream | getContent()
if (this.buffer != null) {
return new ByteArrayInputStream(this.buffer);
} else {
return wrappedEntity.getContent();
}
|
public long | getContentLength()
if (this.buffer != null) {
return this.buffer.length;
} else {
return wrappedEntity.getContentLength();
}
|
public boolean | isChunked()Tells that this entity does not have to be chunked.
return (buffer == null) && wrappedEntity.isChunked();
|
public boolean | isRepeatable()Tells that this entity is repeatable.
return true;
|
public boolean | isStreaming()
return (buffer == null) && wrappedEntity.isStreaming();
|
public void | writeTo(java.io.OutputStream outstream)
if (outstream == null) {
throw new IllegalArgumentException("Output stream may not be null");
}
if (this.buffer != null) {
outstream.write(this.buffer);
} else {
wrappedEntity.writeTo(outstream);
}
|