@InterfaceAudience.Private public class UVIntTool extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
BYTE_7_RIGHT_BITS_SET |
static byte |
BYTE_LEFT_BIT_SET |
static long |
INT_7_RIGHT_BITS_SET |
static long |
INT_8TH_BIT_SET |
static byte[] |
MAX_VALUE_BYTES |
Constructor and Description |
---|
UVIntTool() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getBytes(int value) |
static int |
getInt(byte[] bytes)
bytes -> int
|
static int |
getInt(byte[] bytes,
int offset) |
static int |
getInt(InputStream is) |
static int |
numBytes(int in)
int -> bytes
|
static int |
writeBytes(int value,
OutputStream os) |
public static final byte BYTE_7_RIGHT_BITS_SET
public static final byte BYTE_LEFT_BIT_SET
public static final long INT_7_RIGHT_BITS_SET
public static final long INT_8TH_BIT_SET
public static final byte[] MAX_VALUE_BYTES
public static int numBytes(int in)
public static byte[] getBytes(int value)
public static int writeBytes(int value, OutputStream os) throws IOException
IOException
public static int getInt(byte[] bytes)
public static int getInt(byte[] bytes, int offset)
public static int getInt(InputStream is) throws IOException
IOException
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.