|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.caucho.vfs.TempOutputStream
public class TempOutputStream
| Constructor Summary | |
|---|---|
TempOutputStream()
|
|
| Method Summary | |
|---|---|
void |
clear()
clear without removing |
void |
close()
|
void |
destroy()
Clean up the temp stream. |
void |
flush()
|
TempBuffer |
getHead()
Returns the head buffer. |
java.io.InputStream |
getInputStream()
Opens a read stream to the buffer. |
int |
getLength()
Returns the total length of the buffer's bytes |
byte[] |
getTail()
|
java.io.InputStream |
openInputStream()
Opens a read stream to the buffer. |
java.io.InputStream |
openInputStreamNoFree()
Opens a read stream to the buffer. |
ReadStream |
openRead()
Opens a read stream to the buffer. |
void |
readAll(int position,
byte[] buffer,
int offset,
int length)
|
void |
readAll(int position,
char[] buffer,
int offset,
int length)
|
byte[] |
toByteArray()
|
void |
write(byte[] buffer)
|
void |
write(byte[] buf,
int offset,
int length)
|
void |
write(int ch)
|
void |
writeToStream(java.io.OutputStream os)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TempOutputStream()
| Method Detail |
|---|
public byte[] getTail()
public void write(int ch)
write in class java.io.OutputStream
public void write(byte[] buf,
int offset,
int length)
write in class java.io.OutputStreampublic void write(byte[] buffer)
write in class java.io.OutputStreampublic void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreampublic void close()
close in interface java.io.Closeableclose in class java.io.OutputStream
public ReadStream openRead()
throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException
public java.io.InputStream openInputStream()
throws java.io.IOException
java.io.IOException
public java.io.InputStream openInputStreamNoFree()
throws java.io.IOException
java.io.IOExceptionpublic TempBuffer getHead()
public void clear()
public void writeToStream(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic int getLength()
public byte[] toByteArray()
public void readAll(int position,
char[] buffer,
int offset,
int length)
public void readAll(int position,
byte[] buffer,
int offset,
int length)
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||