DBFUtils@Deprecated public final class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGN_LEFT
Deprecated.
|
static int |
ALIGN_RIGHT
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(byte[] array,
byte value)
Deprecated.
|
static byte[] |
doubleFormating(Double doubleNum,
Charset charset,
int fieldLength,
int sizeDecimalPart)
Deprecated.
|
static byte[] |
doubleFormating(Double doubleNum,
String characterSetName,
int fieldLength,
int sizeDecimalPart)
Deprecated.
|
static byte[] |
doubleFormating(Number num,
Charset charset,
int fieldLength,
int sizeDecimalPart)
Deprecated.
|
static byte[] |
doubleFormating(Number num,
String characterSetName,
int fieldLength,
int sizeDecimalPart)
Deprecated.
|
static boolean |
isPureAscii(String stringToCheck)
Deprecated.
|
static int |
littleEndian(int value)
Deprecated.
|
static short |
littleEndian(short value)
Deprecated.
|
static int |
readLittleEndianInt(DataInput in)
Deprecated.
|
static short |
readLittleEndianShort(DataInput in)
Deprecated.
|
static byte[] |
removeSpaces(byte[] array)
Deprecated.
|
static byte[] |
textPadding(String text,
Charset charset,
int length)
Deprecated.
|
static byte[] |
textPadding(String text,
Charset charset,
int length,
DBFAlignment alignment)
Deprecated.
|
static byte[] |
textPadding(String text,
Charset charset,
int length,
DBFAlignment alignment,
byte paddingByte)
Deprecated.
|
static byte[] |
textPadding(String text,
String characterSetName,
int length)
Deprecated.
|
static byte[] |
textPadding(String text,
String characterSetName,
int length,
DBFAlignment alignment)
Deprecated.
|
static byte[] |
textPadding(String text,
String characterSetName,
int length,
DBFAlignment alignment,
byte paddingByte)
Deprecated.
|
static byte[] |
textPadding(String text,
String characterSetName,
int length,
int alignment)
Deprecated.
|
static byte[] |
textPadding(String text,
String characterSetName,
int length,
int alignment,
byte paddingByte)
Deprecated.
|
static Object |
toBoolean(byte t_logical)
Deprecated.
|
static byte[] |
trimLeftSpaces(byte[] arr)
Deprecated.
this functions really trim all spaces, instead only left spaces, so for clarity is deprecated and
mantained for backwards compatibility, use
DBFUtils.removeSpaces(byte[]) |
@Deprecated public static final int ALIGN_LEFT
DBFAlignment.LEFT@Deprecated public static final int ALIGN_RIGHT
DBFAlignment.RIGHT@Deprecated public static int readLittleEndianInt(DataInput in) throws IOException
DBFUtils.readLittleEndianInt(DataInput)in - DataInput to read fromIOException - if some IO error occurs@Deprecated public static short readLittleEndianShort(DataInput in) throws IOException
DBFUtils.readLittleEndianShort(DataInput)in - DataInput to read fromIOException - if some IO error occurs@Deprecated public static byte[] removeSpaces(byte[] array)
DBFUtils.removeSpaces(byte[])array - the data@Deprecated public static short littleEndian(short value)
DBFUtils.littleEndian(short)value - value readed@Deprecated public static int littleEndian(int value)
DBFUtils.littleEndian(int)value - readed@Deprecated public static byte[] textPadding(String text, Charset charset, int length)
DBFUtils.textPadding(String, Charset, int, DBFAlignment, byte)text - the text to writecharset - The charset to uselength - field length@Deprecated public static byte[] textPadding(String text, Charset charset, int length, DBFAlignment alignment)
DBFUtils.textPadding(String, Charset, int, DBFAlignment, byte)text - the text to writecharset - The charset to uselength - field lengthalignment - where to align the data@Deprecated public static byte[] textPadding(String text, Charset charset, int length, DBFAlignment alignment, byte paddingByte)
DBFUtils.textPadding(String, Charset, int, DBFAlignment, byte)text - the text to writecharset - The charset to uselength - field lengthalignment - where to align the datapaddingByte - byte to use for padding@Deprecated public static byte[] doubleFormating(Number num, Charset charset, int fieldLength, int sizeDecimalPart)
DBFUtils.doubleFormating(Number, Charset, int, int)num - number to convertcharset - charset to use (ignored)fieldLength - field sizesizeDecimalPart - sizeDecimalPart@Deprecated public static byte[] doubleFormating(Double doubleNum, Charset charset, int fieldLength, int sizeDecimalPart)
DBFUtils.doubleFormating(Number, Charset, int, int)doubleNum - number to convertcharset - charset to use (ignored)fieldLength - field sizesizeDecimalPart - sizeDecimalPart@Deprecated public static boolean contains(byte[] array, byte value)
DBFUtils.contains(byte[], byte)array - The array to search invalue - The byte to search for@Deprecated public static boolean isPureAscii(String stringToCheck)
DBFUtils.isPureAscii(String)stringToCheck - the string@Deprecated public static Object toBoolean(byte t_logical)
DBFUtils.toBoolean(byte)t_logical - The byte value as stored in the file@Deprecated public static byte[] trimLeftSpaces(byte[] arr)
DBFUtils.removeSpaces(byte[])arr - data to trim@Deprecated public static byte[] textPadding(String text, String characterSetName, int length, int alignment) throws UnsupportedEncodingException
DBFUtils.textPadding(String, Charset, int, DBFAlignment, byte)text - the text to writecharacterSetName - The charset to uselength - field lengthalignment - where to align the dataUnsupportedEncodingException - if characterSetName doesn't exists@Deprecated public static byte[] textPadding(String text, String characterSetName, int length, int alignment, byte paddingByte) throws UnsupportedEncodingException
DBFUtils.textPadding(String, Charset, int, DBFAlignment, byte)text - the text to writecharacterSetName - The charset to uselength - field lengthalignment - where to align the datapaddingByte - the byte to use for paddingUnsupportedEncodingException - if characterSetName doesn't exists@Deprecated public static byte[] textPadding(String text, String characterSetName, int length) throws UnsupportedEncodingException
DBFUtils.textPadding(String, Charset, int)text - the text to writecharacterSetName - The charset to uselength - field lengthUnsupportedEncodingException - if characterSetName doesn't exists@Deprecated public static byte[] textPadding(String text, String characterSetName, int length, DBFAlignment alignment) throws UnsupportedEncodingException
DBFUtils.textPadding(String, Charset, int, DBFAlignment, byte)text - the text to writecharacterSetName - The charset to uselength - field lengthalignment - where to align the dataUnsupportedEncodingException - if characterSetName doesn't exists@Deprecated public static byte[] textPadding(String text, String characterSetName, int length, DBFAlignment alignment, byte paddingByte) throws UnsupportedEncodingException
DBFUtils.textPadding(String, Charset, int, DBFAlignment, byte)text - the text to writecharacterSetName - The charset to uselength - field lengthalignment - where to align the datapaddingByte - the byte to use for paddingUnsupportedEncodingException - if characterSetName doesn't exists@Deprecated public static byte[] doubleFormating(Number num, String characterSetName, int fieldLength, int sizeDecimalPart) throws UnsupportedEncodingException
DBFUtils.doubleFormating(Number, Charset, int, int)num - number to convertcharacterSetName - charset to use (ignored)fieldLength - field sizesizeDecimalPart - sizeDecimalPartUnsupportedEncodingException - since no charset is used, no excpetion is thrown@Deprecated public static byte[] doubleFormating(Double doubleNum, String characterSetName, int fieldLength, int sizeDecimalPart) throws UnsupportedEncodingException
DBFUtils.doubleFormating(Number, Charset, int, int)doubleNum - number to convertcharacterSetName - charset to use (ignored)fieldLength - field sizesizeDecimalPart - sizeDecimalPartUnsupportedEncodingException - since no charset is used, no excpetion is thrownCopyright © 2018. All rights reserved.