|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.caucho.vfs.OutputStreamWithBuffer
com.caucho.server.connection.AbstractResponseStream
public abstract class AbstractResponseStream
API for handling the PrintWriter/ServletOutputStream
| Constructor Summary | |
|---|---|
AbstractResponseStream()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the output buffer, including headers if possible. |
abstract void |
clearBuffer()
Clears the output buffer. |
void |
clearClosed()
Clears the close |
void |
close()
Closes the response stream |
void |
finish()
Finishes the response stream |
void |
flush()
Flushes the output. |
abstract void |
flushBuffer()
Flushes the output buffer. |
void |
flushByte()
Flushes the output. |
void |
flushChar()
Flushes the output. |
abstract int |
getBufferSize()
Gets the buffer size. |
abstract char[] |
getCharBuffer()
Returns the char buffer. |
abstract int |
getCharOffset()
Returns the char buffer offset. |
int |
getContentLength()
Returns the written content length |
abstract int |
getRemaining()
Returns the remaining buffer entries. |
boolean |
isAutoFlush()
Return the auto-flush. |
abstract boolean |
isCauchoResponseStream()
Returns true for a Caucho response stream. |
boolean |
isCommitted()
Returns true if the response is committed. |
boolean |
isHead()
Set true for HEAD requests. |
abstract char[] |
nextCharBuffer(int offset)
Returns the next char buffer. |
abstract void |
print(char[] buffer,
int offset,
int length)
Writes a char array to the output. |
abstract void |
print(int ch)
Writes a character to the output. |
void |
sendFile(Path path,
long length)
Sends a file. |
void |
setAutoFlush(boolean isAutoFlush)
Sets the auto-flush |
abstract void |
setBufferSize(int size)
Sets the buffer size. |
void |
setByteCacheStream(java.io.OutputStream cacheStream)
Sets a byte cache stream. |
void |
setCharCacheStream(java.io.Writer cacheStream)
Sets a char cache stream. |
abstract void |
setCharOffset(int offset)
Sets the char buffer offset. |
void |
setEncoding(java.lang.String encoding)
Sets the encoding. |
void |
setHead()
Set true for HEAD requests. |
void |
setLocale(java.util.Locale locale)
Sets the locale. |
void |
setOutputStreamOnly(boolean isOutputStreamOnly)
Set true for output stream only request. |
void |
start()
Starts the response stream. |
abstract void |
write(byte[] buffer,
int offset,
int length)
Writes a byte array to the output. |
abstract void |
write(int v)
Writes a byte to the output. |
| Methods inherited from class com.caucho.vfs.OutputStreamWithBuffer |
|---|
getBuffer, getBufferOffset, nextBuffer, setBufferOffset |
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractResponseStream()
| Method Detail |
|---|
public void start()
public abstract boolean isCauchoResponseStream()
public void setEncoding(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void setOutputStreamOnly(boolean isOutputStreamOnly)
public void setLocale(java.util.Locale locale)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic abstract void setBufferSize(int size)
public abstract int getBufferSize()
public void setAutoFlush(boolean isAutoFlush)
public boolean isAutoFlush()
public abstract int getRemaining()
public abstract char[] getCharBuffer()
throws java.io.IOException
java.io.IOException
public abstract int getCharOffset()
throws java.io.IOException
java.io.IOException
public abstract void setCharOffset(int offset)
throws java.io.IOException
java.io.IOException
public abstract char[] nextCharBuffer(int offset)
throws java.io.IOException
java.io.IOExceptionpublic boolean isCommitted()
public void setHead()
public boolean isHead()
public void setByteCacheStream(java.io.OutputStream cacheStream)
public void setCharCacheStream(java.io.Writer cacheStream)
public int getContentLength()
public abstract void write(int v)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public abstract void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public abstract void print(int ch)
throws java.io.IOException
java.io.IOException
public abstract void print(char[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOException
public void clear()
throws java.io.IOException
java.io.IOExceptionpublic abstract void clearBuffer()
public abstract void flushBuffer()
throws java.io.IOException
java.io.IOException
public void flushByte()
throws java.io.IOException
java.io.IOException
public void flushChar()
throws java.io.IOException
java.io.IOException
public void sendFile(Path path,
long length)
throws java.io.IOException
path - the path to the filelength - the length of the file (-1 if unknown)
java.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void finish()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
public void clearClosed()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||