|
|||||||||
| Home >> All >> org >> apache >> java >> [ lang overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.java.lang
Class Bytes

java.lang.Objectorg.apache.java.lang.Bytes
Deprecated. Use Jakarta Commons
- public class Bytes
- extends java.lang.Object
Static methods for managing byte arrays (all methods follow Big Endian order where most significant bits are in front).
- Version:
- $Id: Bytes.java 264148 2005-08-29 14:21:04Z henning $
| Field Summary | |
private static char[] |
hexDigits
Deprecated. |
| Constructor Summary | |
Bytes()
Deprecated. |
|
| Method Summary | |
static byte[] |
append(byte[] a,
byte[] b)
Deprecated. Appends two bytes array into one. |
static byte[] |
append(byte[] a,
byte[] b,
byte[] c)
Deprecated. Appends three bytes array into one. |
static boolean |
areEqual(byte[] a,
byte[] b)
Deprecated. Compares two byte arrays for equality. |
static byte[] |
copy(byte[] b,
int pos)
Deprecated. Gets the end of the byte array given. |
static byte[] |
copy(byte[] b,
int pos,
int length)
Deprecated. Gets a sub-set of the byte array given. |
static void |
merge(byte[] src,
byte[] dest)
Deprecated. Merges a bytes array into another. |
static void |
merge(byte[] src,
byte[] dest,
int pos)
Deprecated. Merges a bytes array into another starting from the given position. |
static void |
merge(byte[] src,
byte[] dest,
int pos,
int length)
Deprecated. Merges a bytes array into another starting from the given position. |
static void |
merge(byte[] src,
byte[] dest,
int srcpos,
int destpos,
int length)
Deprecated. Merges a bytes array into another starting from the given positions. |
static byte[] |
toBytes(int n)
Deprecated. Returns a 4-byte array built from an int. |
static byte[] |
toBytes(int n,
byte[] b)
Deprecated. Build a 4-byte array from an int. |
static byte[] |
toBytes(long n)
Deprecated. Returns a 8-byte array built from a long. |
static byte[] |
toBytes(long n,
byte[] b)
Deprecated. Build a 8-byte array from a long. |
static int |
toInt(byte[] b)
Deprecated. Build an int from first 4 bytes of the array. |
static long |
toLong(byte[] b)
Deprecated. Build a long from first 8 bytes of the array. |
static java.lang.String |
toString(byte[] b)
Deprecated. Returns a string of hexadecimal digits from a byte array. |
static java.lang.String |
toString(byte[] b,
int offset,
int length)
Deprecated. Returns a string of hexadecimal digits from a byte array, starting at offset and continuing for length bytes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
hexDigits
private static final char[] hexDigits
- Deprecated.
| Constructor Detail |
Bytes
public Bytes()
- Deprecated.
| Method Detail |
append
public static byte[] append(byte[] a,
byte[] b)
- Deprecated.
- Appends two bytes array into one.
- Appends two bytes array into one.
append
public static byte[] append(byte[] a,
byte[] b,
byte[] c)
- Deprecated.
- Appends three bytes array into one.
- Appends three bytes array into one.
areEqual
public static boolean areEqual(byte[] a,
byte[] b)
- Deprecated.
- Compares two byte arrays for equality.
- Compares two byte arrays for equality.
copy
public static byte[] copy(byte[] b,
int pos)
- Deprecated.
- Gets the end of the byte array given.
- Gets the end of the byte array given.
copy
public static byte[] copy(byte[] b,
int pos,
int length)
- Deprecated.
- Gets a sub-set of the byte array given.
- Gets a sub-set of the byte array given.
merge
public static void merge(byte[] src,
byte[] dest)
- Deprecated.
- Merges a bytes array into another.
- Merges a bytes array into another.
merge
public static void merge(byte[] src,
byte[] dest,
int pos)
- Deprecated.
- Merges a bytes array into another starting from the given position.
- Merges a bytes array into another starting from the given position.
merge
public static void merge(byte[] src,
byte[] dest,
int pos,
int length)
- Deprecated.
- Merges a bytes array into another starting from the given position.
- Merges a bytes array into another starting from the given position.
merge
public static void merge(byte[] src,
byte[] dest,
int srcpos,
int destpos,
int length)
- Deprecated.
- Merges a bytes array into another starting from the given positions.
- Merges a bytes array into another starting from the given positions.
toBytes
public static byte[] toBytes(int n)
- Deprecated.
- Returns a 4-byte array built from an int.
- Returns a 4-byte array built from an int.
toBytes
public static byte[] toBytes(int n,
byte[] b)
- Deprecated.
- Build a 4-byte array from an int. No check is performed on the array length.
- Build a 4-byte array from an int. No check is performed on the array length.
toBytes
public static byte[] toBytes(long n)
- Deprecated.
- Returns a 8-byte array built from a long.
- Returns a 8-byte array built from a long.
toBytes
public static byte[] toBytes(long n,
byte[] b)
- Deprecated.
- Build a 8-byte array from a long. No check is performed on the array length.
- Build a 8-byte array from a long. No check is performed on the array length.
toInt
public static int toInt(byte[] b)
- Deprecated.
- Build an int from first 4 bytes of the array.
- Build an int from first 4 bytes of the array.
toLong
public static long toLong(byte[] b)
- Deprecated.
- Build a long from first 8 bytes of the array.
- Build a long from first 8 bytes of the array.
toString
public static java.lang.String toString(byte[] b)
- Deprecated.
- Returns a string of hexadecimal digits from a byte array.
- Returns a string of hexadecimal digits from a byte array.
toString
public static java.lang.String toString(byte[] b, int offset, int length)
- Deprecated.
- Returns a string of hexadecimal digits from a byte array, starting at offset and continuing for length bytes.
- Returns a string of hexadecimal digits from a byte array, starting at offset and continuing for length bytes.
|
|||||||||
| Home >> All >> org >> apache >> java >> [ lang overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.java.lang.Bytes