|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jsesoft.jse.Root
Base class of all jse classes.
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
protected java.util.ResourceBundle |
messages
|
protected java.util.ResourceBundle |
resources
|
Constructor Summary | |
protected |
Root()
Initializes the instance. |
Method Summary | |
static java.lang.String |
decrementNumber(java.lang.String number,
int digits)
Decrements the number contained in a string. |
static java.lang.String |
getResourceMessage(java.lang.String key)
Returns the message specified by key. |
static java.lang.String |
getResourceMessage(java.lang.String key,
java.util.ResourceBundle bundle)
Returns the message specified by key from the specified bundle. |
java.lang.Object |
getResourceObject(java.lang.String key)
Returns the resource object specified by key. |
java.lang.String |
getResourceString(java.lang.String key)
Returns the resource string specified by key. |
static java.lang.String |
incrementNumber(java.lang.String number,
int digits)
Increments the number contained in a string. |
static int |
intFromByteArray(byte[] data,
int offset,
boolean littleEndian)
Converts byte array to int. |
static byte[] |
intToByteArray(int value,
boolean littleEndian)
Converts integer to byte array. |
static long |
longFromByteArray(byte[] data,
int offset,
boolean littleEndian)
Converts byte array to long. |
static byte[] |
longToByteArray(long value,
boolean littleEndian)
Converts long to byte array. |
void |
setMessageResourceBundle(java.util.ResourceBundle bundle)
Specifies the message resource bundle used. |
void |
setPackageResourceBundle(java.util.ResourceBundle bundle)
Specifies the package resource bundle used. |
static short |
shortFromByteArray(byte[] data,
int offset,
boolean littleEndian)
Converts byte array to short. |
static byte[] |
shortToByteArray(short value,
boolean littleEndian)
Converts short to byte array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.ResourceBundle messages
protected java.util.ResourceBundle resources
protected static org.apache.log4j.Logger logger
Constructor Detail |
protected Root()
Method Detail |
public static java.lang.String incrementNumber(java.lang.String number, int digits)
number
- The string numberdigits
- The number of digits in the string
public static java.lang.String decrementNumber(java.lang.String number, int digits)
number
- The string numberdigits
- The number of digits in the string
public static java.lang.String getResourceMessage(java.lang.String key, java.util.ResourceBundle bundle)
bundle
- the resource bundle to usekey
- the key for the message
public static java.lang.String getResourceMessage(java.lang.String key)
key
- the key for the message
public java.lang.String getResourceString(java.lang.String key)
key
- the key for the resource string
public java.lang.Object getResourceObject(java.lang.String key)
key
- the key for the resource object
public void setMessageResourceBundle(java.util.ResourceBundle bundle)
bundle
- the message resource bundle to usepublic void setPackageResourceBundle(java.util.ResourceBundle bundle)
bundle
- the package resource bundle to usepublic static byte[] shortToByteArray(short value, boolean littleEndian)
public static byte[] intToByteArray(int value, boolean littleEndian)
public static byte[] longToByteArray(long value, boolean littleEndian)
public static short shortFromByteArray(byte[] data, int offset, boolean littleEndian)
data
- the byte arrayoffset
- the starting offsetlittleEndian
- the endianess flag
public static int intFromByteArray(byte[] data, int offset, boolean littleEndian)
data
- the byte arrayoffset
- the starting offsetlittleEndian
- the endianess flag
public static long longFromByteArray(byte[] data, int offset, boolean littleEndian)
data
- the byte arrayoffset
- the starting offsetlittleEndian
- the endianess flag
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |