public final class Utils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGN_LEFT |
static int |
ALIGN_RIGHT |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(byte[] arr,
byte value) |
static byte[] |
doubleFormating(java.lang.Double doubleNum,
java.lang.String characterSetName,
int fieldLength,
int sizeDecimalPart) |
static int |
littleEndian(int value) |
static short |
littleEndian(short value) |
static int |
readLittleEndianInt(java.io.DataInput in) |
static short |
readLittleEndianShort(java.io.DataInput in) |
static byte[] |
textPadding(java.lang.String text,
java.lang.String characterSetName,
int length) |
static byte[] |
textPadding(java.lang.String text,
java.lang.String characterSetName,
int length,
int alignment) |
static byte[] |
textPadding(java.lang.String text,
java.lang.String characterSetName,
int length,
int alignment,
byte paddingByte) |
static byte[] |
trimLeftSpaces(byte[] arr) |
public static final int ALIGN_LEFT
public static final int ALIGN_RIGHT
public static int readLittleEndianInt(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic static short readLittleEndianShort(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] trimLeftSpaces(byte[] arr)
public static short littleEndian(short value)
public static int littleEndian(int value)
public static byte[] textPadding(java.lang.String text,
java.lang.String characterSetName,
int length)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static byte[] textPadding(java.lang.String text,
java.lang.String characterSetName,
int length,
int alignment)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static byte[] textPadding(java.lang.String text,
java.lang.String characterSetName,
int length,
int alignment,
byte paddingByte)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static byte[] doubleFormating(java.lang.Double doubleNum,
java.lang.String characterSetName,
int fieldLength,
int sizeDecimalPart)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static boolean contains(byte[] arr,
byte value)