|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbt747.sys.JavaLibBridge
public final class JavaLibBridge
This implements the Bridge for java functionality that is not the same across java platforms. For more information regarding a bridge, see "Design Patterns" theory.
Constructor Summary | |
---|---|
JavaLibBridge()
|
Method Summary | |
---|---|
static double |
acos(double x)
Calculate inverse cosinus |
static void |
addThread(BT747Thread o,
boolean highPrio)
Add a thread to the thread list. |
static double |
atan(double x)
Calculate inverse tangent |
static double |
atan2(double x,
double y)
Calculate inverse tangent |
static void |
debug(java.lang.String s)
|
static void |
debug(java.lang.String s,
java.lang.Throwable e)
|
static java.lang.String |
getAppSettings()
|
static BT747Date |
getDateInstance()
|
static BT747Date |
getDateInstance(int d,
int m,
int y)
|
static BT747Date |
getDateInstance(java.lang.String date,
byte format)
|
static BT747File |
getFileInstance(BT747Path path)
|
static BT747File |
getFileInstance(BT747Path path,
int mode)
|
static BT747HashSet |
getHashSetInstance()
|
static BT747Hashtable |
getHashtableInstance(int initialCapacity)
|
static BT747HttpSender |
getHttpSenderInstance()
Retrieve an platform specific instance of a class implementing the BT747HttpSender interface. |
static BT747RAFile |
getRAFileInstance(BT747Path path)
|
static BT747RAFile |
getRAFileInstance(BT747Path path,
int mode)
|
static BT747Semaphore |
getSemaphoreInstance(int value)
|
static BT747StringTokenizer |
getStringTokenizerInstance(java.lang.String a,
char b)
|
static BT747Time |
getTimeInstance()
|
static int |
getTimeStamp()
|
static BT747Vector |
getVectorInstance()
|
static boolean |
isAvailable()
|
static double |
longBitsToDouble(long l)
|
static double |
pow(double x,
double y)
Calculate x^^y. |
static void |
removeThread(BT747Thread o)
Remove a thread from the thread list. |
static void |
setAppSettings(java.lang.String appSettings)
|
static void |
setJavaLibImplementation(JavaLibImplementation imp)
Set the implementation. |
static double |
toDouble(java.lang.String s)
|
static float |
toFloat(java.lang.String s)
|
static float |
toFloatBitwise(int l)
|
static int |
toInt(java.lang.String s)
|
static int |
toIntBitwise(float f)
|
static java.lang.String |
toString(boolean p)
|
static java.lang.String |
toString(double p)
|
static java.lang.String |
toString(double p,
int i)
|
static java.lang.String |
toString(float p)
|
static java.lang.String |
toString(int p)
|
static java.lang.String[] |
toStringArrayAndEmpty(BT747Vector vector)
|
static java.lang.String |
unsigned2hex(int p,
int i)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaLibBridge()
Method Detail |
---|
public static final void setJavaLibImplementation(JavaLibImplementation imp)
imp
- is the class.public static final BT747Hashtable getHashtableInstance(int initialCapacity)
public static final BT747Semaphore getSemaphoreInstance(int value)
public static final BT747Time getTimeInstance()
public static final BT747StringTokenizer getStringTokenizerInstance(java.lang.String a, char b)
public static final java.lang.String[] toStringArrayAndEmpty(BT747Vector vector)
public static final BT747Vector getVectorInstance()
public static final BT747HashSet getHashSetInstance()
public static final BT747Date getDateInstance()
public static final BT747Date getDateInstance(int d, int m, int y)
public static final BT747Date getDateInstance(java.lang.String date, byte format)
public static final void addThread(BT747Thread o, boolean highPrio)
o
- The thread.highPrio
- True if high priority.public static final void removeThread(BT747Thread o)
o
- Thread to remove.public static final double acos(double x)
x
- x.
public static final double atan2(double x, double y)
x
- x.
public static final double atan(double x)
x
- x.
public static final double pow(double x, double y)
x
- x.y
- y.
public static final int getTimeStamp()
public static final void debug(java.lang.String s, java.lang.Throwable e)
public static final void debug(java.lang.String s)
public static final java.lang.String getAppSettings()
public static final void setAppSettings(java.lang.String appSettings)
appSettings
- the appSettings to setpublic static final BT747File getFileInstance(BT747Path path)
public static final BT747File getFileInstance(BT747Path path, int mode)
public static final BT747RAFile getRAFileInstance(BT747Path path)
public static final BT747RAFile getRAFileInstance(BT747Path path, int mode)
public static final boolean isAvailable()
public static final double longBitsToDouble(long l)
public static final double toDouble(java.lang.String s)
public static final float toFloat(java.lang.String s)
public static final float toFloatBitwise(int l)
public static final int toInt(java.lang.String s)
public static final int toIntBitwise(float f)
public static final java.lang.String toString(boolean p)
public static final java.lang.String toString(double p)
public static final java.lang.String toString(double p, int i)
public static final java.lang.String toString(float p)
public static final java.lang.String toString(int p)
public static final java.lang.String unsigned2hex(int p, int i)
public static final BT747HttpSender getHttpSenderInstance() throws BT747Exception
BT747Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |