|
JBoss EJB client 2.0.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.ejb.client.remoting.PackedInteger
@Deprecated public class PackedInteger
A PackedInteger is a variable-length integer. The most-significant bit of each byte of a
PackedInteger value indicates whether that byte is the final (lowest-order) byte of the value.
If the bit is 0, then this is the last byte; if the bit is 1, then there is at least one more subsequent
byte pending, and the current value should be shifted to the left by 7 bits to accommodate the next byte's data.
PackedInteger cannot hold signed integer values.
| Constructor Summary | |
|---|---|
PackedInteger()
Deprecated. |
|
| Method Summary | |
|---|---|
static int |
readPackedInteger(DataInput input)
Deprecated. Reads a PackedInteger value from the passed input and returns the
value of the integer. |
static byte[] |
toPackedInteger(int value)
Deprecated. |
static void |
writePackedInteger(DataOutput output,
int value)
Deprecated. Converts the passed value into a PackedInteger and writes it to the
output |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackedInteger()
| Method Detail |
|---|
public static int readPackedInteger(DataInput input)
throws IOException
PackedInteger value from the passed input and returns the
value of the integer.
input - The DataInput from which the PackedInteger value will be read
IOException
IllegalArgumentException - If the passed input is null
public static void writePackedInteger(DataOutput output,
int value)
throws IOException
value into a PackedInteger and writes it to the
output
output - The DataOutput to which the PackedInteger is written tovalue - The integer value which will be converted to a PackedInteger
IOException
IllegalArgumentException - If the passed value is < 0. PackedInteger doesn't
allow signed integer
IllegalArgumentException - If the passed output is null
public static byte[] toPackedInteger(int value)
throws IOException
IOException
|
JBoss EJB client 2.0.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||