public final class FSTOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
byte[] |
buf
The buffer where data is stored.
|
int |
pos
The number of valid bytes in the buffer.
|
| Constructor and Description |
|---|
FSTOutputStream(int size,
OutputStream out) |
FSTOutputStream(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyTo(OutputStream out) |
void |
ensureCapacity(int minCapacity) |
void |
ensureFree(int free) |
void |
flush() |
byte[] |
getBuf() |
OutputStream |
getOutstream() |
int |
getPos() |
void |
reset() |
void |
setBuf(byte[] buf) |
void |
setOutstream(OutputStream outstream) |
void |
setPos(int pos) |
int |
size() |
byte[] |
toByteArray() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic byte[] buf
public int pos
public FSTOutputStream(OutputStream out)
public FSTOutputStream(int size,
OutputStream out)
public OutputStream getOutstream()
public void setOutstream(OutputStream outstream)
public byte[] getBuf()
public void setBuf(byte[] buf)
public int getPos()
public void setPos(int pos)
public final void ensureFree(int free)
throws IOException
IOExceptionpublic final void ensureCapacity(int minCapacity)
throws IOException
IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void copyTo(OutputStream out) throws IOException
IOExceptionpublic void reset()
public byte[] toByteArray()
public int size()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2014. All rights reserved.