public class UnsignedNumeric extends Object
Constructor and Description |
---|
UnsignedNumeric() |
Modifier and Type | Method and Description |
---|---|
static int |
readUnsignedInt(byte[] bytes,
int offset)
Reads an int stored in variable-length format.
|
static int |
readUnsignedInt(ByteBuffer in) |
static int |
readUnsignedInt(InputStream in) |
static int |
readUnsignedInt(ObjectInput in)
Reads an int stored in variable-length format.
|
static long |
readUnsignedLong(byte[] bytes,
int offset)
Reads an int stored in variable-length format.
|
static long |
readUnsignedLong(ByteBuffer in) |
static long |
readUnsignedLong(InputStream in) |
static long |
readUnsignedLong(ObjectInput in)
Reads a long stored in variable-length format.
|
static byte |
sizeUnsignedInt(int i) |
static int |
writeUnsignedInt(byte[] bytes,
int offset,
int i)
Writes an int in a variable-length format.
|
static void |
writeUnsignedInt(ByteBuffer out,
int i) |
static void |
writeUnsignedInt(ObjectOutput out,
int i)
Writes an int in a variable-length format.
|
static void |
writeUnsignedInt(OutputStream out,
int i) |
static void |
writeUnsignedLong(byte[] bytes,
int offset,
long i)
Writes an int in a variable-length format.
|
static void |
writeUnsignedLong(ByteBuffer out,
long i) |
static void |
writeUnsignedLong(ObjectOutput out,
long i)
Writes a long in a variable-length format.
|
static void |
writeUnsignedLong(OutputStream out,
long i) |
public static int readUnsignedInt(ObjectInput in) throws IOException
IOException
public static int readUnsignedInt(InputStream in) throws IOException
IOException
public static int readUnsignedInt(ByteBuffer in)
public static void writeUnsignedInt(ObjectOutput out, int i) throws IOException
i
- int to writeIOException
public static void writeUnsignedInt(OutputStream out, int i) throws IOException
IOException
public static byte sizeUnsignedInt(int i)
public static void writeUnsignedInt(ByteBuffer out, int i)
public static long readUnsignedLong(ObjectInput in) throws IOException
IOException
public static long readUnsignedLong(InputStream in) throws IOException
IOException
public static long readUnsignedLong(ByteBuffer in)
public static void writeUnsignedLong(ObjectOutput out, long i) throws IOException
i
- int to writeIOException
public static void writeUnsignedLong(OutputStream out, long i) throws IOException
IOException
public static void writeUnsignedLong(ByteBuffer out, long i)
public static int readUnsignedInt(byte[] bytes, int offset)
public static int writeUnsignedInt(byte[] bytes, int offset, int i)
i
- int to writepublic static long readUnsignedLong(byte[] bytes, int offset)
public static void writeUnsignedLong(byte[] bytes, int offset, long i)
i
- int to writeCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.