public class TempOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
TempOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public byte[] getTail()
public void write(int ch)
write in class java.io.OutputStreampublic 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 interface java.lang.AutoCloseableclose in class java.io.OutputStreampublic ReadStream openRead() throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream openInputStream()
throws java.io.IOException
java.io.IOExceptionpublic 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()