net.sf.bt747.j2se.system
Class J2SEJavaTranslations

java.lang.Object
  extended by net.sf.bt747.j2se.system.J2SEJavaTranslations
All Implemented Interfaces:
JavaLibImplementation

public final class J2SEJavaTranslations
extends java.lang.Object
implements JavaLibImplementation


Method Summary
 double acos(double x)
           
 void addThread(BT747Thread t, boolean b)
           
 double atan(double x)
           
 double atan2(double x, double y)
           
 void debug(java.lang.String s)
           
 void debug(java.lang.String s, java.lang.Throwable e)
           
 java.lang.String getAppSettings()
           
 BT747Date getDateInstance()
           
 BT747Date getDateInstance(int d, int m, int y)
           
 BT747Date getDateInstance(java.lang.String strDate, byte dateFormat)
           
 BT747File getFileInstance(BT747Path path)
           
 BT747File getFileInstance(BT747Path path, int mode)
           
 BT747HashSet getHashSetInstance()
           
 BT747Hashtable getHashtableInstance(int initialCapacity)
           
 BT747HttpSender getHttpSenderInstance()
          Obtain an implementation of the BT747HttpSender interface.
static J2SEJavaTranslations getInstance()
           
 BT747RAFile getRAFileInstance(BT747Path path)
           
 BT747RAFile getRAFileInstance(BT747Path filePath, int mode)
           
 BT747Semaphore getSemaphoreInstance(int value)
           
 BT747StringTokenizer getStringTokenizer(java.lang.String a, char b)
           
 BT747Time getTimeInstance()
           
 int getTimeStamp()
           
 BT747Vector getVectorInstance()
           
 boolean isAvailable()
           
 double longBitsToDouble(long l)
          System method to bitwise convert a long to a double.
 double pow(double x, double y)
           
 void removeThread(BT747Thread t)
           
 void setAppSettings(java.lang.String settings)
           
 double toDouble(java.lang.String s)
          System method to convert a string to a double.
 float toFloat(java.lang.String s)
          System method to convert a string to a float.
 float toFloatBitwise(int l)
          System method to bitwise convert a long to a float.
 int toInt(java.lang.String s)
          System method to convert a string to an integer.
 int toIntBitwise(float f)
          System method to bitwise convert a float to an int.
 java.lang.String toString(boolean p)
          Math
 java.lang.String toString(double p)
          System method to convert a double to a string.
 java.lang.String toString(double p, int i)
          System method to convert a double to a string.
 java.lang.String toString(float p)
          System method to convert a float to a string.
 java.lang.String toString(int p)
           
 java.lang.String unsigned2hex(int p, int i)
          System method to convert an integer to a hexadecimal string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final J2SEJavaTranslations getInstance()

getDateInstance

public final BT747Date getDateInstance()
Specified by:
getDateInstance in interface JavaLibImplementation

getDateInstance

public final BT747Date getDateInstance(int d,
                                       int m,
                                       int y)
Specified by:
getDateInstance in interface JavaLibImplementation

getDateInstance

public final BT747Date getDateInstance(java.lang.String strDate,
                                       byte dateFormat)
Specified by:
getDateInstance in interface JavaLibImplementation

getHashtableInstance

public final BT747Hashtable getHashtableInstance(int initialCapacity)
Specified by:
getHashtableInstance in interface JavaLibImplementation

getVectorInstance

public final BT747Vector getVectorInstance()
Specified by:
getVectorInstance in interface JavaLibImplementation

getTimeInstance

public final BT747Time getTimeInstance()
Specified by:
getTimeInstance in interface JavaLibImplementation

getRAFileInstance

public final BT747RAFile getRAFileInstance(BT747Path path)
Specified by:
getRAFileInstance in interface JavaLibImplementation

getRAFileInstance

public final BT747RAFile getRAFileInstance(BT747Path filePath,
                                           int mode)
Specified by:
getRAFileInstance in interface JavaLibImplementation

getFileInstance

public final BT747File getFileInstance(BT747Path path)
Specified by:
getFileInstance in interface JavaLibImplementation

getFileInstance

public final BT747File getFileInstance(BT747Path path,
                                       int mode)
Specified by:
getFileInstance in interface JavaLibImplementation

isAvailable

public final boolean isAvailable()
Specified by:
isAvailable in interface JavaLibImplementation

debug

public final void debug(java.lang.String s,
                        java.lang.Throwable e)
Specified by:
debug in interface JavaLibImplementation

pow

public final double pow(double x,
                        double y)
Specified by:
pow in interface JavaLibImplementation

acos

public final double acos(double x)
Specified by:
acos in interface JavaLibImplementation

addThread

public final void addThread(BT747Thread t,
                            boolean b)
Specified by:
addThread in interface JavaLibImplementation

removeThread

public final void removeThread(BT747Thread t)
Specified by:
removeThread in interface JavaLibImplementation

toString

public final java.lang.String toString(boolean p)
Math

Specified by:
toString in interface JavaLibImplementation
Parameters:
p - boolean to convert.
Returns:
String corresponding to boolean.

toString

public final java.lang.String toString(int p)

toString

public final java.lang.String toString(float p)
Description copied from interface: JavaLibImplementation
System method to convert a float to a string.

Specified by:
toString in interface JavaLibImplementation
Parameters:
p - float to convert.
Returns:
String corresponding to floating number.

toString

public final java.lang.String toString(double p)
Description copied from interface: JavaLibImplementation
System method to convert a double to a string.

Specified by:
toString in interface JavaLibImplementation
Parameters:
p - double to convert.
Returns:
String corresponding to double number.

toString

public final java.lang.String toString(double p,
                                       int i)
Description copied from interface: JavaLibImplementation
System method to convert a double to a string.

Specified by:
toString in interface JavaLibImplementation
Parameters:
p - double to convert.
i - Number of digits after the decimal point.
Returns:
String corresponding to double number.

unsigned2hex

public final java.lang.String unsigned2hex(int p,
                                           int i)
Description copied from interface: JavaLibImplementation
System method to convert an integer to a hexadecimal string.

Specified by:
unsigned2hex in interface JavaLibImplementation
Parameters:
p - The integer to convert. Interpreted as an unsigned.
i - The number of characters in the hexadecimal string. For instance, if this value is 8, a value of 0x123 would be converted to "00000123"
Returns:
String value containing the hex representation of the integer

toInt

public final int toInt(java.lang.String s)
Description copied from interface: JavaLibImplementation
System method to convert a string to an integer.

Specified by:
toInt in interface JavaLibImplementation
Parameters:
s - The string to convert.
Returns:
The integer corresponding to the string.

toFloat

public final float toFloat(java.lang.String s)
Description copied from interface: JavaLibImplementation
System method to convert a string to a float.

Specified by:
toFloat in interface JavaLibImplementation
Parameters:
s - The string to convert.
Returns:
The float corresponding to the string.

toDouble

public final double toDouble(java.lang.String s)
Description copied from interface: JavaLibImplementation
System method to convert a string to a double.

Specified by:
toDouble in interface JavaLibImplementation
Parameters:
s - The string to convert.
Returns:
The double corresponding to the string.

longBitsToDouble

public final double longBitsToDouble(long l)
Description copied from interface: JavaLibImplementation
System method to bitwise convert a long to a double. The long corresponds to 8 bytes that represent a floating number in IEEE ... format.

Specified by:
longBitsToDouble in interface JavaLibImplementation
Parameters:
l - The value to bitwise convert.
Returns:
The double corresponding to the bitwise conversion.

toFloatBitwise

public final float toFloatBitwise(int l)
Description copied from interface: JavaLibImplementation
System method to bitwise convert a long to a float. The int corresponds to 4 bytes that represent a floating number in IEEE ... format.

Specified by:
toFloatBitwise in interface JavaLibImplementation
Parameters:
l - The value to bitwise convert.
Returns:
The float corresponding to the bitwise conversion.

toIntBitwise

public final int toIntBitwise(float f)
Description copied from interface: JavaLibImplementation
System method to bitwise convert a float to an int. The int can then be written to a byte array for example.

Specified by:
toIntBitwise in interface JavaLibImplementation
Parameters:
f - The value to bitwise convert.
Returns:
The float corresponding to the bitwise conversion.

debug

public final void debug(java.lang.String s)
Specified by:
debug in interface JavaLibImplementation

getTimeStamp

public final int getTimeStamp()
Specified by:
getTimeStamp in interface JavaLibImplementation

getAppSettings

public final java.lang.String getAppSettings()
Specified by:
getAppSettings in interface JavaLibImplementation
Returns:
the appSettings

setAppSettings

public final void setAppSettings(java.lang.String settings)
Specified by:
setAppSettings in interface JavaLibImplementation
Parameters:
settings - the application settings to set

getSemaphoreInstance

public final BT747Semaphore getSemaphoreInstance(int value)
Specified by:
getSemaphoreInstance in interface JavaLibImplementation

getStringTokenizer

public final BT747StringTokenizer getStringTokenizer(java.lang.String a,
                                                     char b)
Specified by:
getStringTokenizer in interface JavaLibImplementation

getHashSetInstance

public final BT747HashSet getHashSetInstance()
Specified by:
getHashSetInstance in interface JavaLibImplementation

getHttpSenderInstance

public BT747HttpSender getHttpSenderInstance()
Description copied from interface: JavaLibImplementation
Obtain an implementation of the BT747HttpSender interface.
author Florian Unger

Specified by:
getHttpSenderInstance in interface JavaLibImplementation
Returns:
an instance of a class implementing the BT747HttpSender interface.

atan

public double atan(double x)
Specified by:
atan in interface JavaLibImplementation

atan2

public double atan2(double x,
                    double y)
Specified by:
atan2 in interface JavaLibImplementation