Package org.apache.activemq.util
Class ByteSequenceData
java.lang.Object
org.apache.activemq.util.ByteSequenceData
Used to write and read primitives to and from a ByteSequence.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intread(ByteSequence packet) static booleanreadBoolean(ByteSequence packet) static bytereadByte(ByteSequence packet) static charreadCharBig(ByteSequence packet) static charreadCharLittle(ByteSequence packet) static doublereadDoubleBig(ByteSequence packet) static doublereadDoubleLittle(ByteSequence packet) static floatreadFloatBig(ByteSequence packet) static floatreadFloatLittle(ByteSequence packet) static voidreadFully(ByteSequence packet, byte[] b) static voidreadFully(ByteSequence packet, byte[] b, int off, int len) static intreadIntBig(ByteSequence packet) static intreadIntLittle(ByteSequence packet) static longreadLongBig(ByteSequence packet) static longreadLongLittle(ByteSequence packet) static shortreadShortBig(ByteSequence packet) static shortreadShortLittle(ByteSequence packet) static intreadUnsignedByte(ByteSequence packet) static intreadUnsignedShortBig(ByteSequence packet) static intreadUnsignedShortLittle(ByteSequence packet) static intremaining(ByteSequence packet) static intskipBytes(ByteSequence packet, int n) static byte[]toByteArray(ByteSequence packet) static voidwrite(ByteSequence packet, byte[] b) static voidwrite(ByteSequence packet, byte[] b, int off, int len) static voidwrite(ByteSequence packet, int b) static voidwriteBoolean(ByteSequence packet, boolean v) static voidwriteByte(ByteSequence packet, int v) static voidwriteCharBig(ByteSequence packet, int v) static voidwriteCharLittle(ByteSequence packet, int v) static voidwriteDoubleBig(ByteSequence packet, double v) static voidwriteDoubleLittle(ByteSequence packet, double v) static voidwriteFloatBig(ByteSequence packet, float v) static voidwriteFloatLittle(ByteSequence packet, float v) static voidwriteIntBig(ByteSequence packet, int v) static voidwriteIntLittle(ByteSequence packet, int v) static voidwriteLongBig(ByteSequence packet, long v) static voidwriteLongLittle(ByteSequence packet, long v) static voidwriteRawDoubleBig(ByteSequence packet, double v) static voidwriteRawDoubleLittle(ByteSequence packet, double v) static voidwriteRawFloatBig(ByteSequence packet, float v) static voidwriteRawFloatLittle(ByteSequence packet, float v) static voidwriteShortBig(ByteSequence packet, int v) static voidwriteShortLittle(ByteSequence packet, int v)
-
Method Details
-
toByteArray
-
remaining
-
read
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
readBoolean
- Throws:
IOException
-
readByte
- Throws:
IOException
-
readUnsignedByte
- Throws:
IOException
-
readShortBig
- Throws:
IOException
-
readShortLittle
- Throws:
IOException
-
readUnsignedShortBig
- Throws:
IOException
-
readUnsignedShortLittle
- Throws:
IOException
-
readCharBig
- Throws:
IOException
-
readCharLittle
- Throws:
IOException
-
readIntBig
- Throws:
IOException
-
readIntLittle
- Throws:
IOException
-
readLongBig
- Throws:
IOException
-
readLongLittle
- Throws:
IOException
-
readDoubleBig
- Throws:
IOException
-
readDoubleLittle
- Throws:
IOException
-
readFloatBig
- Throws:
IOException
-
readFloatLittle
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
writeBoolean
- Throws:
IOException
-
writeByte
- Throws:
IOException
-
writeShortBig
- Throws:
IOException
-
writeShortLittle
- Throws:
IOException
-
writeCharBig
- Throws:
IOException
-
writeCharLittle
- Throws:
IOException
-
writeIntBig
- Throws:
IOException
-
writeIntLittle
- Throws:
IOException
-
writeLongBig
- Throws:
IOException
-
writeLongLittle
- Throws:
IOException
-
writeDoubleBig
- Throws:
IOException
-
writeDoubleLittle
- Throws:
IOException
-
writeFloatBig
- Throws:
IOException
-
writeFloatLittle
- Throws:
IOException
-
writeRawDoubleBig
- Throws:
IOException
-
writeRawDoubleLittle
- Throws:
IOException
-
writeRawFloatBig
- Throws:
IOException
-
writeRawFloatLittle
- Throws:
IOException
-