com.latencybusters.jms.message
Class ReadWrite
java.lang.Object
com.latencybusters.jms.message.ReadWrite
public class ReadWrite
- extends java.lang.Object
Method Summary |
static void |
checkSize(byte[] b,
int index,
int size)
|
static int |
getSize(java.lang.Object value)
|
static boolean |
readBoolean(byte[] b,
int index)
|
static byte |
readByte(byte[] b,
int index)
|
static int |
readBytes(byte[] b,
byte[] value,
int index)
|
static char |
readChar(byte[] b,
int index)
|
static double |
readDouble(byte[] b,
int index)
|
static float |
readFloat(byte[] b,
int index)
|
static int |
readInt(byte[] b,
int index)
|
static long |
readLong(byte[] b,
int index)
|
static short |
readShort(byte[] b,
int index)
|
static int |
readUnsignedByte(byte[] b,
int index)
|
static int |
readUnsignedShort(byte[] b,
int index)
|
static java.lang.String |
readUTF(byte[] b,
int index)
|
static int |
writeBoolean(byte[] b,
int index,
boolean value)
|
static int |
writeByte(byte[] b,
int index,
byte value)
|
static int |
writeBytes(byte[] b,
int index,
byte[] value)
|
static int |
writeChar(byte[] b,
int index,
char value)
|
static int |
writeDouble(byte[] b,
int index,
double value)
|
static int |
writeFloat(byte[] b,
int index,
float value)
|
static int |
writeInt(byte[] b,
int index,
int value)
|
static int |
writeLong(byte[] b,
int index,
long value)
|
static int |
writeObject(byte[] b,
int index,
java.lang.Object value)
|
static int |
writeShort(byte[] b,
int index,
short value)
|
static int |
writeUTF(byte[] b,
int index,
java.lang.String value)
|
static int |
writeUTFShort(byte[] b,
int index,
short value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOOLEAN_LENGTH
public static final int BOOLEAN_LENGTH
- See Also:
- Constant Field Values
CHAR_LENGTH
public static final int CHAR_LENGTH
- See Also:
- Constant Field Values
BYTE_LENGTH
public static final int BYTE_LENGTH
- See Also:
- Constant Field Values
INT_LENGTH
public static final int INT_LENGTH
- See Also:
- Constant Field Values
LONG_LENGTH
public static final int LONG_LENGTH
- See Also:
- Constant Field Values
FLOAT_LENGTH
public static final int FLOAT_LENGTH
- See Also:
- Constant Field Values
DOUBLE_LENGTH
public static final int DOUBLE_LENGTH
- See Also:
- Constant Field Values
SHORT_LENGTH
public static final int SHORT_LENGTH
- See Also:
- Constant Field Values
STRING_LENGTH
public static final int STRING_LENGTH
- See Also:
- Constant Field Values
ReadWrite
public ReadWrite()
readBoolean
public static boolean readBoolean(byte[] b,
int index)
readByte
public static byte readByte(byte[] b,
int index)
readBytes
public static int readBytes(byte[] b,
byte[] value,
int index)
readChar
public static char readChar(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readDouble
public static double readDouble(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readFloat
public static float readFloat(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readInt
public static int readInt(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readLong
public static long readLong(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readShort
public static short readShort(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readUnsignedByte
public static int readUnsignedByte(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readUnsignedShort
public static int readUnsignedShort(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readUTF
public static java.lang.String readUTF(byte[] b,
int index)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeBoolean
public static int writeBoolean(byte[] b,
int index,
boolean value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeByte
public static int writeByte(byte[] b,
int index,
byte value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeBytes
public static int writeBytes(byte[] b,
int index,
byte[] value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeChar
public static int writeChar(byte[] b,
int index,
char value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeDouble
public static int writeDouble(byte[] b,
int index,
double value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeFloat
public static int writeFloat(byte[] b,
int index,
float value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeInt
public static int writeInt(byte[] b,
int index,
int value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeLong
public static int writeLong(byte[] b,
int index,
long value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeObject
public static int writeObject(byte[] b,
int index,
java.lang.Object value)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeShort
public static int writeShort(byte[] b,
int index,
short value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeUTFShort
public static int writeUTFShort(byte[] b,
int index,
short value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
writeUTF
public static int writeUTF(byte[] b,
int index,
java.lang.String value)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSize
public static int getSize(java.lang.Object value)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
checkSize
public static void checkSize(byte[] b,
int index,
int size)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
All of the documentation and software included in this and any other Informatica, Inc. "Ultra Messaging" Release is Copyright (C) 2004-2014, Informatica Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted only as covered by the terms of a valid software license agreement with Informatica Inc. Copyright © 2004-2014, Informatica, Inc. All Rights Reserved.