1.0.0

org.eclipse.soda.dk.nls
Class Nls

java.lang.Object
  extended by org.eclipse.soda.dk.nls.Nls

public class Nls
extends java.lang.Object

Version:
1.0.0

Field Summary
protected static char[] CR
          Define the cr (char[]) constant.
static char[] HEX_CHAR_LOWER_TABLE
          Define the hex char lower table (char[]) constant.
static char[] HEX_CHAR_UPPER_TABLE
          Define the hex char upper table (char[]) constant.
static byte[] HEX_UPPER_TABLE
          Define the hex upper table (byte[]) constant.
protected static char[] LF
          Define the lf (char[]) constant.
protected static char[] OPEN_TIME
          Define the open time (char[]) constant.
protected static char[] TAB
          Define the tab (char[]) constant.
 
Constructor Summary
Nls()
          Constructor for Nls.
 
Method Summary
static java.lang.String format(java.lang.String pattern, java.lang.Object object)
          Format with the specified pattern and object parameters and return the String result.
static java.lang.String format(java.lang.String pattern, java.lang.Object[] objects)
          Format with the specified pattern and objects parameters and return the String result.
static java.lang.String formatAsciiBytes(byte[] bytes, int index, int length)
          Format ascii bytes with the specified bytes, index and length parameters and return the String result.
static void formatAsciiBytes(byte[] bytes, int index, int length, java.lang.StringBuffer buffer)
          Format ascii bytes with the specified bytes, index, length and buffer parameters.
static void formatData(java.lang.StringBuffer buffer, java.lang.Object data)
          The formatData will format the data values to a nice string.
static java.lang.String formatHexBytes(byte[] bytes, int index, int length)
          Format hex bytes with the specified bytes, index and length parameters and return the String result.
static void formatHexBytes(byte[] bytes, int index, int length, java.lang.StringBuffer buffer)
          Format hex bytes with the specified bytes, index, length and buffer parameters.
static java.lang.String formatTimestamp(long timestamp)
          Format timestamp with the specified timestamp parameter and return the String result.
static java.lang.String formatTimestamp(java.lang.Object timestampObject)
          Format timestamp with the specified timestamp object parameter and return the String result.
static java.lang.String getName(java.lang.Class aclass, java.lang.String name, java.lang.String extension)
          Get name with the specified aclass, name and extension parameters and return the String result.
static java.lang.String[] getNlsAdditions()
          Gets the nls additions (String[]) value.
static java.util.Hashtable getProperties(java.lang.Class aclass, java.lang.String name)
          Get properties with the specified aclass and name parameters and return the Hashtable result.
static java.util.ResourceBundle getResourceBundle(java.lang.Class resourceBaseClass)
          Get resource bundle with the specified resource base class parameter and return the ResourceBundle result.
static java.util.ResourceBundle getResourceBundle(java.lang.String name)
          Get resource bundle with the specified name parameter and return the ResourceBundle result.
static java.net.URL getUrl(java.lang.Class aclass, java.lang.String name, java.lang.String extension)
          Get url with the specified aclass, name and extension parameters and return the URL result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEX_UPPER_TABLE

public static final byte[] HEX_UPPER_TABLE
Define the hex upper table (byte[]) constant.


HEX_CHAR_LOWER_TABLE

public static final char[] HEX_CHAR_LOWER_TABLE
Define the hex char lower table (char[]) constant.


HEX_CHAR_UPPER_TABLE

public static final char[] HEX_CHAR_UPPER_TABLE
Define the hex char upper table (char[]) constant.


CR

protected static final char[] CR
Define the cr (char[]) constant.


LF

protected static final char[] LF
Define the lf (char[]) constant.


TAB

protected static final char[] TAB
Define the tab (char[]) constant.


OPEN_TIME

protected static final char[] OPEN_TIME
Define the open time (char[]) constant.

Constructor Detail

Nls

public Nls()
Constructor for Nls.

Method Detail

format

public static java.lang.String format(java.lang.String pattern,
                                      java.lang.Object object)
Format with the specified pattern and object parameters and return the String result. The pattern (String) parameter. The object (Object) parameter.

Parameters:
pattern - The pattern (String) parameter.
object - The object (Object) parameter.
Returns:
Results of the format (String) value. The pattern (String) parameter. The object (Object) parameter.
See Also:
format(String,Object[])

format

public static java.lang.String format(java.lang.String pattern,
                                      java.lang.Object[] objects)
Format with the specified pattern and objects parameters and return the String result. The pattern (String) parameter. The objects (Object[]) parameter.

Parameters:
pattern - The pattern (String) parameter.
objects - The objects (Object[]) parameter.
Returns:
Results of the format (String) value. The pattern (String) parameter. The objects (Object[]) parameter.
See Also:
format(String,Object)

formatAsciiBytes

public static java.lang.String formatAsciiBytes(byte[] bytes,
                                                int index,
                                                int length)
Format ascii bytes with the specified bytes, index and length parameters and return the String result. The bytes (byte[]) parameter. The index (int) parameter. The length (int) parameter.

Parameters:
bytes - The bytes (byte[]) parameter.
index - The index (int) parameter.
length - The length (int) parameter.
Returns:
Results of the format ascii bytes (String) value. The bytes (byte[]) parameter. The index (int) parameter. The length (int) parameter.
See Also:
formatAsciiBytes(byte[],int,int,StringBuffer)

formatAsciiBytes

public static void formatAsciiBytes(byte[] bytes,
                                    int index,
                                    int length,
                                    java.lang.StringBuffer buffer)
Format ascii bytes with the specified bytes, index, length and buffer parameters. The bytes (byte[]) parameter. The index (int) parameter. The length (int) parameter. The buffer (StringBuffer) parameter. The bytes (byte[]) parameter. The index (int) parameter. The length (int) parameter. The buffer (StringBuffer) parameter.

Parameters:
bytes - The bytes (byte[]) parameter.
index - The index (int) parameter.
length - The length (int) parameter.
buffer - The buffer (StringBuffer) parameter.
See Also:
formatAsciiBytes(byte[],int,int)

formatData

public static void formatData(java.lang.StringBuffer buffer,
                              java.lang.Object data)
The formatData will format the data values to a nice string. The buffer (StringBuffer) parameter. The data (Object) parameter. The buffer (StringBuffer) parameter. The data (Object) parameter.

Parameters:
buffer - The buffer (StringBuffer) parameter.
data - The data (Object) parameter.

formatHexBytes

public static java.lang.String formatHexBytes(byte[] bytes,
                                              int index,
                                              int length)
Format hex bytes with the specified bytes, index and length parameters and return the String result. The bytes (byte[]) parameter. The index (int) parameter. The length (int) parameter.

Parameters:
bytes - The bytes (byte[]) parameter.
index - The index (int) parameter.
length - The length (int) parameter.
Returns:
Results of the format hex bytes (String) value. The bytes (byte[]) parameter. The index (int) parameter. The length (int) parameter.
See Also:
formatHexBytes(byte[],int,int,StringBuffer)

formatHexBytes

public static void formatHexBytes(byte[] bytes,
                                  int index,
                                  int length,
                                  java.lang.StringBuffer buffer)
Format hex bytes with the specified bytes, index, length and buffer parameters. The bytes (byte[]) parameter. The index (int) parameter. The length (int) parameter. The buffer (StringBuffer) parameter. The bytes (byte[]) parameter. The index (int) parameter. The length (int) parameter. The buffer (StringBuffer) parameter.

Parameters:
bytes - The bytes (byte[]) parameter.
index - The index (int) parameter.
length - The length (int) parameter.
buffer - The buffer (StringBuffer) parameter.
See Also:
formatHexBytes(byte[],int,int)

formatTimestamp

public static java.lang.String formatTimestamp(long timestamp)
Format timestamp with the specified timestamp parameter and return the String result. The timestamp (long) parameter.

Parameters:
timestamp - The timestamp (long) parameter.
Returns:
Results of the format timestamp (String) value. The timestamp (long) parameter.
See Also:
formatTimestamp(Object)

formatTimestamp

public static java.lang.String formatTimestamp(java.lang.Object timestampObject)
Format timestamp with the specified timestamp object parameter and return the String result. The timestamp object (Object) parameter.

Parameters:
timestampObject - The timestamp object (Object) parameter.
Returns:
Results of the format timestamp (String) value. The timestamp object (Object) parameter.
See Also:
formatTimestamp(long)

getName

public static java.lang.String getName(java.lang.Class aclass,
                                       java.lang.String name,
                                       java.lang.String extension)
Get name with the specified aclass, name and extension parameters and return the String result. The aclass (Class) parameter. The name (String) parameter. The extension (String) parameter.

Parameters:
aclass - The aclass (Class) parameter.
name - The name (String) parameter.
extension - The extension (String) parameter.
Returns:
Results of the get name (String) value. The aclass (Class) parameter. The name (String) parameter. The extension (String) parameter.

getNlsAdditions

public static java.lang.String[] getNlsAdditions()
Gets the nls additions (String[]) value.

Returns:
The nls additions (String[]) value.

getProperties

public static java.util.Hashtable getProperties(java.lang.Class aclass,
                                                java.lang.String name)
Get properties with the specified aclass and name parameters and return the Hashtable result. The aclass (Class) parameter. The name (String) parameter.

Parameters:
aclass - The aclass (Class) parameter.
name - The name (String) parameter.
Returns:
Results of the get properties (Hashtable) value. The aclass (Class) parameter. The name (String) parameter.

getResourceBundle

public static java.util.ResourceBundle getResourceBundle(java.lang.String name)
Get resource bundle with the specified name parameter and return the ResourceBundle result. The name (String) parameter.

Parameters:
name - The name (String) parameter.
Returns:
Results of the get resource bundle (ResourceBundle) value. The name (String) parameter.
See Also:
getResourceBundle(Class)

getResourceBundle

public static java.util.ResourceBundle getResourceBundle(java.lang.Class resourceBaseClass)
Get resource bundle with the specified resource base class parameter and return the ResourceBundle result. The resource base class (Class) parameter.

Parameters:
resourceBaseClass - The resource base class (Class) parameter.
Returns:
Results of the get resource bundle (ResourceBundle) value. The resource base class (Class) parameter.
See Also:
getResourceBundle(String)

getUrl

public static java.net.URL getUrl(java.lang.Class aclass,
                                  java.lang.String name,
                                  java.lang.String extension)
Get url with the specified aclass, name and extension parameters and return the URL result. The aclass (Class) parameter. The name (String) parameter. The extension (String) parameter.

Parameters:
aclass - The aclass (Class) parameter.
name - The name (String) parameter.
extension - The extension (String) parameter.
Returns:
Results of the get url (URL) value. The aclass (Class) parameter. The name (String) parameter. The extension (String) parameter.

1.0.0

Copyright (c) 1999, 2007 IBM