public class HttpOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
HttpOutputStream(com.ibm.wsspi.http.channel.inbound.HttpInboundServiceContext context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear any current buffer content in the stream.
|
void |
close() |
void |
flush() |
void |
flush(boolean ignoreFlag) |
void |
flushBuffers()
Flush the output array of buffers to the network below.
|
void |
flushHeaders()
Write the current set of response headers.
|
long |
getBufferedCount()
Query the amount of bytes currently buffered so far.
|
int |
getBufferSize()
Query the amount of data this stream is configured to buffer before an
automatic write happens.
|
long |
getBytesWritten()
Query the amount of bytes written so far.
|
boolean |
hasBufferedContent()
Test whether this stream has any current data buffered, waiting to
be written out.
|
boolean |
isClosed()
Query whether this stream is closed already or not.
|
void |
setBufferSize(int size)
Set the amount of data to buffer internally before the stream itself
initiates a flush.
|
void |
setContentLength(long length) |
void |
setIsClosing(boolean b) |
void |
setVirtualConnection(com.ibm.wsspi.channelfw.VirtualConnection inVC)
Deprecated.
|
java.lang.String |
toString() |
void |
write(byte[] value) |
void |
write(byte[] value,
int start,
int len) |
void |
write(int value) |
void |
writeFile(java.nio.channels.FileChannel fc)
Write a file channel onto the output stream.
|
@Deprecated public HttpOutputStream(com.ibm.wsspi.http.channel.inbound.HttpInboundServiceContext context)
context - public void setIsClosing(boolean b)
@Deprecated public void setVirtualConnection(com.ibm.wsspi.channelfw.VirtualConnection inVC)
inVC - public int getBufferSize()
public void setBufferSize(int size)
size - java.lang.IllegalStateException - if already writing data or closedpublic void clear()
public long getBytesWritten()
public long getBufferedCount()
public final boolean hasBufferedContent()
public void writeFile(java.nio.channels.FileChannel fc)
throws java.io.IOException
fc - java.io.IOExceptionpublic void flushHeaders()
throws java.io.IOException
java.io.IOExceptionpublic void flushBuffers()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic final boolean isClosed()
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void flush(boolean ignoreFlag)
throws java.io.IOException
java.io.IOExceptionpublic void setContentLength(long length)
public void write(byte[] value,
int start,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] value)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int value)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException