public class SolByteBuffer extends OutputStream
| Constructor and Description |
|---|
SolByteBuffer(byte[] data,
int offset) |
SolByteBuffer(ByteArray data) |
SolByteBuffer(int capacity) |
SolByteBuffer(SolByteBuffer toclone)
Internal use: copy-constructor to allow message cloning
|
| Modifier and Type | Method and Description |
|---|---|
ByteArray |
asByteArray() |
void |
clear() |
boolean |
equals(Object obj) |
byte[] |
getBackingArray() |
int |
getBackingArrayOffset() |
int |
getLength() |
int |
getWriteMark() |
int |
hashCode() |
boolean |
hasRemaining() |
boolean |
isReadOnly() |
void |
mark() |
byte |
readByte() |
ByteArray |
readBytes(int length) |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
int |
readPosition() |
short |
readShort() |
short |
readUByte() |
long |
readUInt() |
BigInteger |
readULong() |
int |
readUShort() |
int |
readUThrint() |
void |
realloc(int quantum)
Reallocates the byte array if more space is needed.
|
int |
remaining() |
void |
reset() |
void |
rewind() |
void |
setReadOnly(boolean readOnly) |
void |
skipRead(int num) |
void |
skipToEnd() |
void |
skipWrite(int num) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeByte(byte b) |
void |
writeByte(int position,
byte b) |
void |
writeBytes(byte[] src) |
void |
writeBytes(byte[] src,
int offset,
int length) |
void |
writeBytes(ByteArray src) |
void |
writeByteUnsafe(byte b) |
void |
writeChar(char c) |
void |
writeChar(int position,
char c) |
void |
writeDouble(double d) |
void |
writeDouble(int position,
double d) |
void |
writeFloat(float f) |
void |
writeFloat(int position,
float f) |
void |
writeInt(int i) |
void |
writeInt(int position,
int i) |
void |
writeLong(int position,
long l) |
void |
writeLong(long l) |
void |
writeMark() |
void |
writeShort(int position,
short s) |
void |
writeShort(short s) |
void |
writeUByte(int position,
short s) |
void |
writeUByte(short s) |
void |
writeUInt(int position,
long l) |
void |
writeUInt(long l) |
void |
writeULong(BigInteger bi) |
void |
writeULong(int position,
BigInteger bi) |
void |
writeUShort(int i) |
void |
writeUShort(int position,
int i) |
void |
writeUThrint(int i) |
void |
writeUThrint(int position,
int i) |
close, flushpublic SolByteBuffer(int capacity)
public SolByteBuffer(byte[] data,
int offset)
public SolByteBuffer(ByteArray data)
public SolByteBuffer(SolByteBuffer toclone)
toclone - resultpublic ByteArray asByteArray()
public byte[] getBackingArray()
public int getBackingArrayOffset()
public int getLength()
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public boolean hasRemaining()
public int remaining()
public int readPosition()
public void mark()
public void reset()
public void writeMark()
public int getWriteMark()
public void rewind()
public void clear()
public byte readByte()
throws EOFException
EOFExceptionpublic short readUByte()
throws EOFException
EOFExceptionpublic short readShort()
throws EOFException
EOFExceptionpublic char readChar()
throws EOFException
EOFExceptionpublic int readUShort()
throws EOFException
EOFExceptionpublic int readUThrint()
throws EOFException
EOFExceptionpublic int readInt()
throws EOFException
EOFExceptionpublic long readUInt()
throws EOFException
EOFExceptionpublic long readLong()
throws EOFException
EOFExceptionpublic BigInteger readULong() throws EOFException
EOFExceptionpublic float readFloat()
throws EOFException
EOFExceptionpublic double readDouble()
throws EOFException
EOFExceptionpublic ByteArray readBytes(int length) throws EOFException
EOFExceptionpublic void writeByte(byte b)
public void writeByteUnsafe(byte b)
public void writeUByte(short s)
public void writeByte(int position,
byte b)
public void writeUByte(int position,
short s)
public void writeBytes(byte[] src)
public void writeBytes(byte[] src,
int offset,
int length)
public void writeBytes(ByteArray src)
public void writeChar(char c)
public void writeChar(int position,
char c)
public void writeShort(short s)
public void writeShort(int position,
short s)
public void writeUShort(int i)
public void writeUShort(int position,
int i)
public void writeUThrint(int i)
public void writeUThrint(int position,
int i)
public void writeInt(int i)
public void writeInt(int position,
int i)
public void writeUInt(long l)
public void writeUInt(int position,
long l)
public void writeLong(long l)
public void writeLong(int position,
long l)
public void writeULong(BigInteger bi)
public void writeULong(int position,
BigInteger bi)
public void writeFloat(float f)
public void writeFloat(int position,
float f)
public void writeDouble(double d)
public void writeDouble(int position,
double d)
public void skipRead(int num)
throws EOFException
EOFExceptionpublic void skipWrite(int num)
public void skipToEnd()
public void realloc(int quantum)
quantum - parameterpublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void write(byte[] b)
write in class OutputStreampublic void write(int b)
write in class OutputStreamCopyright 2004-2020 Solace Corporation. All rights reserved.