|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.util.OutputBufferImpl
A buffer into which QuickSerializable
objects can be
written.
Implements all of the non-essential functions of
OutputBuffer
, so that other classes only need to implement
add (byte)
and add (byte, int, int)
.
The implementations of most of these functions were cribbed from Dennis's SecureHashBuffer class.
QuickSerializable
Constructor Summary | |
---|---|
OutputBufferImpl()
|
Method Summary | |
---|---|
void |
add(BigInteger value)
|
void |
add(boolean b)
|
abstract void |
add(byte input)
Adds the specified byte to the digest. |
void |
add(byte[] input)
Adds the specified byte array to the digest. |
abstract void |
add(byte[] input,
int offset,
int length)
Adds length bytes of the specified array to the digest,
starting at offset . |
void |
add(double x)
|
void |
add(InputBuffer in)
Adds the remaining bytes in the given input buffer to this output buffer. |
void |
add(int i)
|
void |
add(long i)
|
static void |
add(OutputBuffer buffer,
BigInteger value)
|
static void |
add(OutputBuffer buffer,
boolean b)
|
static void |
add(OutputBuffer buffer,
byte[] input)
|
static void |
add(OutputBuffer buffer,
double x)
|
static void |
add(OutputBuffer out,
InputBuffer in)
Adds the remaining bytes in the given input buffer to this output buffer. |
static void |
add(OutputBuffer buffer,
int i)
|
static void |
add(OutputBuffer buffer,
long i)
|
static void |
add(OutputBuffer buffer,
QuickSerializable value)
Adds the specified object to the digest. |
static void |
add(OutputBuffer buffer,
short i)
|
static void |
add(OutputBuffer buffer,
String s)
|
void |
add(QuickSerializable value)
Adds the specified object to the digest. |
void |
add(short i)
|
void |
add(String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OutputBufferImpl()
Method Detail |
public abstract void add(byte input)
add
in interface OutputBuffer
public abstract void add(byte[] input, int offset, int length)
length
bytes of the specified array to the digest,
starting at offset
.
add
in interface OutputBuffer
public void add(byte[] input)
add
in interface OutputBuffer
public void add(QuickSerializable value)
QuickSerializable.serialize
method; be careful to avoid infinite loops.
add
in interface OutputBuffer
public void add(InputBuffer in)
add
in interface OutputBuffer
public void add(boolean b)
add
in interface OutputBuffer
public void add(short i)
add
in interface OutputBuffer
public void add(int i)
add
in interface OutputBuffer
public void add(long i)
add
in interface OutputBuffer
public void add(double x)
add
in interface OutputBuffer
public void add(String s)
add
in interface OutputBuffer
public void add(BigInteger value)
add
in interface OutputBuffer
public static final void add(OutputBuffer buffer, byte[] input)
public static final void add(OutputBuffer buffer, QuickSerializable value) throws AssertionViolatedException
QuickSerializable.serialize
method; be careful to avoid infinite loops.
AssertionViolatedException
- if value
is null
public static final void add(OutputBuffer out, InputBuffer in)
public static final void add(OutputBuffer buffer, boolean b)
public static final void add(OutputBuffer buffer, short i)
public static final void add(OutputBuffer buffer, int i)
public static final void add(OutputBuffer buffer, long i)
public static final void add(OutputBuffer buffer, double x)
public static final void add(OutputBuffer buffer, String s)
public static final void add(OutputBuffer buffer, BigInteger value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |