Inheritance diagram for com::sleepycat::util::FastOutputStream:
Public Member Functions | |
FastOutputStream () | |
FastOutputStream (int initialSize) | |
FastOutputStream (int initialSize, int bumpSize) | |
FastOutputStream (byte[] buffer) | |
FastOutputStream (byte[] buffer, int bumpSize) | |
final void | writeFast (int b) |
final void | writeFast (byte[] fromBuf) |
final void | writeFast (byte[] fromBuf, int offset, int length) |
byte[] | getBufferBytes () |
int | getBufferOffset () |
int | getBufferLength () |
void | makeSpace (int sizeNeeded) |
void | addSize (int sizeAdded) |
Static Public Attributes | |
static final int | DEFAULT_INIT_SIZE = 100 |
static final int | DEFAULT_BUMP_SIZE = 0 |
This class extends OutputStream and its write()
methods allow it to be used as a standard output stream. In addition, it provides writeFast()
methods that are not declared to throw IOException
. IOException
is never thrown by this class.
Definition at line 28 of file FastOutputStream.java.
|
Creates an output stream with default sizes. Definition at line 49 of file FastOutputStream.java. References DEFAULT_BUMP_SIZE, and DEFAULT_INIT_SIZE. |
|
Creates an output stream with a default bump size and a given initial size.
Definition at line 60 of file FastOutputStream.java. References DEFAULT_BUMP_SIZE. |
|
Creates an output stream with a given bump size and initial size.
Definition at line 72 of file FastOutputStream.java. |
|
Creates an output stream with a given initial buffer and a default bump size.
Definition at line 83 of file FastOutputStream.java. References DEFAULT_BUMP_SIZE. |
|
Creates an output stream with a given initial buffer and a given bump size.
Definition at line 99 of file FastOutputStream.java. |
|
Skip the given number of bytes in the buffer.
Definition at line 257 of file FastOutputStream.java. Referenced by com::sleepycat::bind::tuple::TupleOutput::writeString(). |
|
Returns the buffer owned by this object.
Definition at line 213 of file FastOutputStream.java. Referenced by com::sleepycat::bind::serial::SerialBinding::objectToEntry(), com::sleepycat::bind::tuple::TupleBase::outputToEntry(), com::sleepycat::bind::tuple::TupleInput::TupleInput(), and com::sleepycat::bind::tuple::TupleOutput::writeString(). |
|
Returns the length used in the internal buffer, i.e., the offset at which data will be written next.
Definition at line 234 of file FastOutputStream.java. Referenced by com::sleepycat::bind::serial::SerialBinding::objectToEntry(), com::sleepycat::bind::tuple::TupleBase::outputToEntry(), com::sleepycat::bind::tuple::TupleInput::TupleInput(), and com::sleepycat::bind::tuple::TupleOutput::writeString(). |
|
Returns the offset of the internal buffer.
Definition at line 223 of file FastOutputStream.java. Referenced by com::sleepycat::bind::tuple::TupleBase::outputToEntry(), and com::sleepycat::bind::tuple::TupleInput::TupleInput(). |
|
Ensure that at least the given number of bytes are available in the internal buffer.
Definition at line 245 of file FastOutputStream.java. Referenced by com::sleepycat::bind::tuple::TupleOutput::writeString(). |
|
Equivalent to Definition at line 198 of file FastOutputStream.java. |
|
Equivalent to Definition at line 183 of file FastOutputStream.java. |
|
Equivalent to Definition at line 170 of file FastOutputStream.java. Referenced by com::sleepycat::bind::tuple::TupleOutput::writeBoolean(), com::sleepycat::bind::tuple::TupleOutput::writeBytes(), com::sleepycat::bind::tuple::TupleOutput::writeChar(), com::sleepycat::bind::tuple::TupleOutput::writeChars(), com::sleepycat::bind::tuple::TupleOutput::writeString(), com::sleepycat::bind::tuple::TupleOutput::writeUnsignedByte(), com::sleepycat::bind::tuple::TupleOutput::writeUnsignedInt(), and com::sleepycat::bind::tuple::TupleOutput::writeUnsignedShort(). |
|
The default amount that the buffer is increased when it is full. This constant is zero, which means to double the current buffer size. Definition at line 40 of file FastOutputStream.java. Referenced by FastOutputStream(). |
|
The default initial size of the buffer if no initialSize parameter is specified. This constant is 100 bytes. Definition at line 34 of file FastOutputStream.java. Referenced by FastOutputStream(). |