bt747.sys.interfaces
Interface JavaLibImplementation

All Known Implementing Classes:
J2SEJavaTranslations, WabaJavaTranslations

public interface JavaLibImplementation

Author:
Mario De Weerd, Florian Unger for indicated parts.

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.
 BT747RAFile getRAFileInstance(BT747Path path)
           
 BT747RAFile getRAFileInstance(BT747Path path, 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 appSettings)
           
 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)
          System method to convert a boolean to a string.
 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 unsigned2hex(int p, int i)
          System method to convert an integer to a hexadecimal string.
 

Method Detail

getDateInstance

BT747Date getDateInstance()

getDateInstance

BT747Date getDateInstance(int d,
                          int m,
                          int y)

getDateInstance

BT747Date getDateInstance(java.lang.String strDate,
                          byte dateFormat)

getHashtableInstance

BT747Hashtable getHashtableInstance(int initialCapacity)

getVectorInstance

BT747Vector getVectorInstance()

getTimeInstance

BT747Time getTimeInstance()

getFileInstance

BT747File getFileInstance(BT747Path path)

getFileInstance

BT747File getFileInstance(BT747Path path,
                          int mode)

getRAFileInstance

BT747RAFile getRAFileInstance(BT747Path path)

getRAFileInstance

BT747RAFile getRAFileInstance(BT747Path path,
                              int mode)

isAvailable

boolean isAvailable()

debug

void debug(java.lang.String s,
           java.lang.Throwable e)

pow

double pow(double x,
           double y)

acos

double acos(double x)

atan2

double atan2(double x,
             double y)

atan

double atan(double x)

addThread

void addThread(BT747Thread t,
               boolean b)

removeThread

void removeThread(BT747Thread t)

toString

java.lang.String toString(boolean p)
System method to convert a boolean to a string.

Parameters:
p - boolean to convert.
Returns:
String corresponding to boolean.

toString

java.lang.String toString(float p)
System method to convert a float to a string.

Parameters:
p - float to convert.
Returns:
String corresponding to floating number.

toString

java.lang.String toString(double p)
System method to convert a double to a string.

Parameters:
p - double to convert.
Returns:
String corresponding to double number.

toString

java.lang.String toString(double p,
                          int i)
System method to convert a double to a string.

Parameters:
p - double to convert.
i - Number of digits after the decimal point.
Returns:
String corresponding to double number.

unsigned2hex

java.lang.String unsigned2hex(int p,
                              int i)
System method to convert an integer to a hexadecimal string.

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

int toInt(java.lang.String s)
System method to convert a string to an integer.

Parameters:
s - The string to convert.
Returns:
The integer corresponding to the string.

toFloat

float toFloat(java.lang.String s)
System method to convert a string to a float.

Parameters:
s - The string to convert.
Returns:
The float corresponding to the string.

toDouble

double toDouble(java.lang.String s)
System method to convert a string to a double.

Parameters:
s - The string to convert.
Returns:
The double corresponding to the string.

longBitsToDouble

double longBitsToDouble(long l)
System method to bitwise convert a long to a double. The long corresponds to 8 bytes that represent a floating number in IEEE ... format.

Parameters:
l - The value to bitwise convert.
Returns:
The double corresponding to the bitwise conversion.

toFloatBitwise

float toFloatBitwise(int l)
System method to bitwise convert a long to a float. The int corresponds to 4 bytes that represent a floating number in IEEE ... format.

Parameters:
l - The value to bitwise convert.
Returns:
The float corresponding to the bitwise conversion.

toIntBitwise

int toIntBitwise(float f)
System method to bitwise convert a float to an int. The int can then be written to a byte array for example.

Parameters:
f - The value to bitwise convert.
Returns:
The float corresponding to the bitwise conversion.

debug

void debug(java.lang.String s)

getTimeStamp

int getTimeStamp()

getAppSettings

java.lang.String getAppSettings()

setAppSettings

void setAppSettings(java.lang.String appSettings)

getSemaphoreInstance

BT747Semaphore getSemaphoreInstance(int value)

getStringTokenizer

BT747StringTokenizer getStringTokenizer(java.lang.String a,
                                        char b)

getHashSetInstance

BT747HashSet getHashSetInstance()

getHttpSenderInstance

BT747HttpSender getHttpSenderInstance()
                                      throws BT747Exception
Obtain an implementation of the BT747HttpSender interface.
author Florian Unger

Returns:
an instance of a class implementing the BT747HttpSender interface.
Throws:
BT747Exception