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.OutputStream
public void write(byte[] buf, int offset, int length)
write
in class java.io.OutputStream
public void write(byte[] buffer)
write
in class java.io.OutputStream
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
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.IOException
public TempBuffer getHead()
public void clear()
public void writeToStream(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public 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()