public abstract class HttpOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
HttpOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
clear()
Clear any current buffer content in the stream.
|
abstract void |
flush(boolean ignoreFlag) |
abstract void |
flushBuffers()
Flush the output array of buffers to the network below.
|
abstract void |
flushHeaders()
Write the current set of response headers.
|
abstract long |
getBufferedCount()
Query the amount of bytes currently buffered so far.
|
abstract int |
getBufferSize()
Query the amount of data this stream is configured to buffer before an
automatic write happens.
|
abstract long |
getBytesWritten()
Query the amount of bytes written so far.
|
abstract boolean |
hasBufferedContent()
Test whether this stream has any current data buffered, waiting to
be written out.
|
abstract boolean |
isClosed()
Query whether this stream is closed already or not.
|
abstract void |
setBufferSize(int size)
Set the amount of data to buffer internally before the stream itself
initiates a flush.
|
abstract void |
setContentLength(long length) |
abstract void |
setIsClosing(boolean b) |
abstract void |
writeFile(java.nio.channels.FileChannel fc)
Write a file channel onto the output stream.
|
public abstract void setIsClosing(boolean b)
public abstract int getBufferSize()
public abstract void setBufferSize(int size)
size - java.lang.IllegalStateException - if already writing data or closedpublic abstract void clear()
public abstract long getBytesWritten()
public abstract long getBufferedCount()
public abstract boolean hasBufferedContent()
public abstract void writeFile(java.nio.channels.FileChannel fc)
throws java.io.IOException
fc - java.io.IOExceptionpublic abstract void flushHeaders()
throws java.io.IOException
java.io.IOExceptionpublic abstract void flushBuffers()
throws java.io.IOException
java.io.IOExceptionpublic abstract boolean isClosed()
public abstract void flush(boolean ignoreFlag)
throws java.io.IOException
ignoreFlag - java.io.IOExceptionpublic abstract void setContentLength(long length)
length -