|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
org.openrdf.sesame.server.http.HTTPOutputStream
An OutputStream that wraps an HttpServletResponse. HTTPOutputStream is implemented such that it only set the status and opens an output stream to a supplied HttpServletResponse when the first byte is actually written.
| Constructor Summary | |
HTTPOutputStream(HttpServletResponse response)
Creates a new HTTPOutputStream. |
|
HTTPOutputStream(HttpServletResponse response,
String contentType)
Creates a new HTTPOutputStream. |
|
| Method Summary | |
void |
close()
|
void |
flush()
|
void |
setCacheableResult(boolean cacheable)
Sets whether the receiver of the written result is allowed cache it. |
void |
setContentType(String contentType)
Sets the content type that will be reported to the client, e.g. |
void |
setUseGZIPCompression(boolean useGZIP)
Sets whether written response should be compressed using gzip. |
boolean |
streamClosed()
Checks whether the response stream has been closed. |
boolean |
streamOpened()
Checks whether the response stream has been opened yet. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTTPOutputStream(HttpServletResponse response)
public HTTPOutputStream(HttpServletResponse response,
String contentType)
| Method Detail |
public void setContentType(String contentType)
public void setCacheableResult(boolean cacheable)
public void setUseGZIPCompression(boolean useGZIP)
public void write(int b)
throws IOException
IOException
public void write(byte[] b)
throws IOException
IOException
public void write(byte[] b,
int off,
int len)
throws IOException
IOException
public void flush()
throws IOException
IOException
public void close()
throws IOException
IOExceptionpublic boolean streamOpened()
public boolean streamClosed()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||