|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.cml.util.CMLUtils
public class CMLUtils
A number of miscellaneous tools. Originally devised for jumbo.sgml, now rewritten for jumbo.xml. Use these at your peril - some will be phased out
| Field Summary | |
|---|---|
static java.lang.String |
AMP
Description of the Field |
static java.lang.String |
APOS
Description of the Field |
static java.lang.String |
ATSIGN
Description of the Field |
static java.lang.String |
BACKSLASH
Description of the Field |
static int |
BR_LOOKAHEAD
lookahead for bufferedReader |
static java.lang.String |
CARET
Description of the Field |
static int |
CASE
case sensitivity flags - used throughout jumbo.xml |
static java.lang.String |
COLON
Description of the Field |
static java.lang.String |
COMMA
Description of the Field |
static java.lang.String |
DOLLAR
Description of the Field |
static java.lang.String |
DOS
Description of the Field |
static java.lang.String |
EQUALS
Description of the Field |
static java.lang.String |
FORMAT_ASCII
Description of the Field |
static java.lang.String |
FORMAT_DOS
Description of the Field |
static java.lang.String |
FORMAT_EQUALS
Description of the Field |
static java.lang.String |
FORMFEED
Description of the Field |
static java.lang.String |
HASH
Description of the Field |
static int |
IGNORECASE
Description of the Field |
static java.lang.String |
LANGLE
Description of the Field |
static java.lang.String |
LBRAK
Description of the Field |
static java.lang.String |
LCURLY
Description of the Field |
static java.lang.String |
LSQUARE
Description of the Field |
static java.lang.String |
MINUS
Description of the Field |
static java.lang.String |
NEWLINE
Description of the Field |
static java.lang.String |
NONWHITEPUNC
Description of the Field |
static java.lang.String |
PERCENT
Description of the Field |
static java.lang.String |
PERIOD
Description of the Field |
static java.lang.String |
PIPE
Description of the Field |
static java.lang.String |
PLUS
Description of the Field |
static java.lang.String |
POUND
Description of the Field |
static java.lang.String |
PUNC
Description of the Field |
static java.lang.String |
QUERY
Description of the Field |
static java.lang.String |
QUOT
Description of the Field |
static java.lang.String |
RANGLE
Description of the Field |
static java.lang.String |
RBRAK
Description of the Field |
static java.lang.String |
RCURLY
Description of the Field |
static java.lang.String |
RETURN
Description of the Field |
static java.lang.String[] |
ROMAN_NUMERALS
a list of the first few Roman numerals (for example for chapters) |
static java.lang.String |
RSQUARE
Description of the Field |
static java.lang.String |
SEMICOLON
Description of the Field |
static java.lang.String |
SHRIEK
Description of the Field |
static java.lang.String |
SLASH
Description of the Field |
static java.lang.String |
SPACE
Description of the Field |
static java.lang.String |
STAR
Description of the Field |
static java.lang.String |
TAB
Description of the Field |
static java.lang.String |
TILDE
Description of the Field |
static java.lang.String |
UNDER
Description of the Field |
static int |
UNKNOWN
general code for unset or unknown variables |
static java.lang.String |
WHITESPACE
Description of the Field |
static java.lang.String |
X_COMMENTC
Description of the Field |
static java.lang.String |
X_COMMENTO
Description of the Field |
static java.lang.String |
X_DOCTYPEE
Description of the Field |
static java.lang.String |
X_DOCTYPEO
Description of the Field |
static java.lang.String |
X_ELEMDEFC
Description of the Field |
static java.lang.String |
X_ELEMDEFO
Description of the Field |
static java.lang.String |
X_EMPTAGC
Description of the Field |
static java.lang.String |
X_EMPTAGO
Description of the Field |
static java.lang.String |
X_ENTDEFC
Description of the Field |
static java.lang.String |
X_ENTDEFO
Description of the Field |
static java.lang.String |
X_ETAGC
Description of the Field |
static java.lang.String |
X_ETAGO
Description of the Field |
static java.lang.String |
X_GENENTC
Description of the Field |
static java.lang.String |
X_GENENTO
Description of the Field |
static java.lang.String |
X_PARAMENTC
Description of the Field |
static java.lang.String |
X_PARAMENTDEFC
Description of the Field |
static java.lang.String |
X_PARAMENTDEFO
Description of the Field |
static java.lang.String |
X_PARAMENTO
Description of the Field |
static java.lang.String |
X_STAGC
Description of the Field |
static java.lang.String |
X_STAGO
Description of the Field |
static java.lang.String |
X_STARTDEF
Description of the Field |
| Constructor Summary | |
|---|---|
CMLUtils()
|
|
| Method Summary | |
|---|---|
static void |
addEnumerationToVector(java.util.Vector v,
java.util.Enumeration e)
add the elements of an Enumeration to a Vector. |
java.lang.String |
addToClasspath(java.lang.String extraPath)
adds to the classpath and resets the system property |
static void |
addToSystemProperties(java.lang.String urlString)
load a file/url into the system properties, |
static java.util.Vector |
alternativeStringTokenizer(java.lang.String s,
char delim)
tokenize the string including adjacent delimiters (for example "foo$$bar$", "$" would contain the tokens "foo", "", "bar" and "") |
static java.util.Hashtable |
and(java.util.Hashtable h1,
java.util.Hashtable h2)
create Hashtable with elements common to h1 and h2. |
static java.util.Vector |
and(java.util.Vector v1,
java.util.Vector v2)
create Vector with elements common to v1 and v2. |
static java.util.Hashtable |
andTables(java.util.Hashtable a,
java.util.Hashtable b)
AND 2 Hashtables - inefficient except for small tables. |
static java.util.Vector |
andVectors(java.util.Vector a,
java.util.Vector b)
finds elements common to 2 vectors. |
static void |
bug(java.lang.Exception e)
Description of the Method |
static void |
bug(java.lang.String s)
record that we have hit a program bug!!! |
static java.lang.String |
capitalise(java.lang.String s)
capitalise a String (whatever the starting case) |
static java.util.Vector |
convertFormat(java.util.Vector vector,
java.lang.String format)
converts character format within a Vector of Strings. |
static void |
copyFile(java.io.File inFile,
java.io.File outFile)
copy one file to another (I suspect there is a better way |
static double |
cos(java.lang.String fString)
Description of the Method |
static java.lang.String |
createCommaSeparatedStrings(java.util.Vector v)
Description of the Method |
static java.io.File |
createNewFile(java.lang.String fileName)
create new file, including making directory if required This seems to be a mess - f.createNewFile() doesn't seem to work A directory should have a trailing file.separator |
static boolean |
deleteFile(java.io.File file,
boolean deleteDirectory)
delete a file If directory==true then file will be recursively deleted |
static java.lang.String |
deQuote(java.lang.String s)
remove balanced quotes from ends of (trimmed) string, else no action |
static java.lang.String |
dump(java.net.URL url)
reads a stream from url and outputs it as integer values of the characters and as strings. |
static boolean |
equals(java.lang.Object obj1,
java.lang.Object obj2)
compares two objects using equals() allows for null objects. |
static boolean |
equals(java.lang.String string1,
java.lang.String string2,
int sensitivity)
convenience function for comparing strings using CMLUtils.CASE/IGNORECASE |
static void |
error(java.lang.String s)
Error message - nothing fancy at present. |
static java.lang.String |
escape(java.lang.String s)
default escape characters in an XML string (' -> ' , etc); also escape non-XML characters (for example eacute => é) |
static java.lang.String |
escape(java.lang.String s,
char[] escapes,
java.lang.String[] escape1)
escape characters in an XML string; also escape non-XML characters (for example eacute => é). |
static void |
flush(java.lang.String s)
output String and flush() |
static void |
freeMemory(long mem)
runs the garbage collector if memory drops below mem. |
static java.util.Vector |
getCommaSeparatedStrings(java.lang.String s)
parse comma-separated Strings Note fields can be "" (as in ,,,) and fields can be quoted "...". |
static java.io.FileOutputStream |
getFileOutputStream(java.lang.String fileName)
get an OutputStream from a file or URL. |
static int |
getIntegerFromRoman(java.lang.String roman)
translate Roman Numerals up to 50 Some normalisation is performed Failure returns -1 |
static int |
getIntFromHex(java.lang.String hex)
Translates a Hex number to its int equivalent. |
static java.lang.Object |
getNewInstance(java.lang.String className)
gets a new instance of a class from a hashtable because normal methods are very slow |
static java.lang.String |
getPWDName()
get current directory |
static java.util.Vector |
getRepeatedValues(java.util.Vector v)
returns a vector of all repeated values in v. |
static java.lang.String |
getSuffix(java.lang.String filename)
gets suffix from filename |
static int |
indexOf(java.lang.String string,
java.lang.String[] strings,
int caseSensitivity)
get the index of a String in an array |
static int |
indexOfBalancedBracket(char lbrack,
java.lang.String s)
return index of balanced bracket -1 for none. |
static java.util.Hashtable |
invert(java.util.Hashtable table)
invert a Hashtable by interchanging keys and values. |
static boolean |
isAllowedFormat(java.lang.String format)
Gets the allowedFormat attribute of the CMLUtils class |
static boolean |
isRegisteredApplet(java.applet.Applet applet)
retrive that an object is an applet rather than an application must have been registered above |
static boolean |
isRightMouseClick(java.awt.event.MouseEvent event)
a crude way of identifying a right mouse click (because I left the Java book behind) |
static java.lang.String |
leftTrim(java.lang.String s)
remove leading blanks |
static double |
log(java.lang.String fString)
Description of the Method |
static void |
main(java.lang.String[] args)
Description of the Method |
static java.lang.String |
makeAbsoluteURL(java.applet.Applet applet,
java.lang.String url)
If a URL is relative, make it absolute against either the current directory (application) or codebase (applet) |
static java.lang.String |
makeAbsoluteURL(java.lang.String url)
If a URL is relative, make it absolute against the current directory. |
static java.lang.String |
makeDirectory(java.lang.String urlString)
truncate filename suffix to make a directory name (without file.separator) |
static void |
message(java.lang.String s)
message - nothing fancy at present |
static java.lang.String |
normaliseWhitespace(java.lang.String s)
normalise whitespace in a String (all whitespace is transformed to single spaces and the string is NOT trimmed |
static java.util.Hashtable |
not(java.util.Hashtable h1,
java.util.Hashtable h2)
create Hashtable with elements in to h1 but not h2. |
static java.util.Vector |
not(java.util.Vector v1,
java.util.Vector v2)
create Vector with elements in v1 but not v2. |
static java.util.Hashtable |
or(java.util.Hashtable h1,
java.util.Hashtable h2)
create Hashtable with elements in to h1 but not h2. |
static java.util.Vector |
or(java.util.Vector v1,
java.util.Vector v2)
create Vector with elements in v1 but not v2. |
static java.util.Hashtable |
orTables(java.util.Hashtable a,
java.util.Hashtable b)
OR 2 Hashtables - inefficient except for small tables. |
static java.lang.String |
outputFloat(int nPlaces,
int nDec,
double value)
format for example f8.3 this is a mess; if cannot fit, then either right-truncates or when that doesn't work, returns **** |
static java.lang.String |
outputInteger(int nPlaces,
int value)
this is a mess |
static java.lang.String |
outputNumber(int nPlaces,
int nDec,
double c)
as above, but trims trailing zeros |
static java.util.Vector |
parseWhitespaceQuotedFields(java.lang.String s)
parse whitespace-separated tokens interspersed with quoted strings, for example this is "a quoted string" and 'another token' as well parses to: this/is/a quoted string/and/another token/as well |
static void |
printChar()
Description of the Method |
static java.lang.String |
quoteConcatenate(java.lang.String[] s)
concatenate strings into quote-separated string |
static byte[] |
readByteArray(java.io.DataInputStream d)
reads a byte array from DataInputStream, *including* line feeds |
static byte[] |
readByteArray(java.lang.String filename)
reads a byte array from file, *including* line feeds |
static void |
readZip(java.lang.String fileName)
read a Zipfile |
static void |
registerApplet(java.applet.Applet applet)
record that an object is an applet rather than an application call from applet's init() method |
static java.lang.String |
removeHTML(java.lang.String s)
remove balanced (well-formed) markup from a string. |
static java.lang.String |
rightTrim(java.lang.String s)
remove trailing blanks |
static void |
setSystemProperty(java.lang.String property,
java.lang.String value)
add a property to the System ones Don't know if this is a good idea... |
static double |
sin(java.lang.String fString)
Description of the Method |
static int |
skipWhite(java.io.BufferedReader bReader)
skip white lines and end with first non-white line Leaves bReader ready to read first non-white line |
static void |
sort(java.lang.Object[] objs)
sort an object array - very inefficient |
static void |
sortVector(java.util.Vector v)
sort a Vector - VERY crude and inefficient |
static java.lang.String |
spaces(int nspace)
make a String of a given number of spaces |
static java.lang.String[] |
split(java.lang.String s)
splits a whitespace-separated set of tokens into a String[] |
static java.lang.String |
stripISOControls(java.lang.String s)
remove all control (non-printing) characters |
static byte[] |
stripNewlines(byte[] b)
strip linefeeds from a byte array |
static java.lang.String |
substituteDOSbyAscii(java.lang.String s)
substitute certain DOS-compatible diacriticals by the Unicode value. |
static java.lang.String |
substituteEquals(java.lang.String s)
substitute hex representation of character, for example =2E by char(46). |
static java.lang.String |
substituteString(java.lang.String s,
java.lang.String oldSubstring,
java.lang.String newSubstring,
int count)
make substitutions in a string. |
static java.lang.String |
substituteStrings(java.lang.String s,
java.lang.String[] oldSubstrings,
java.lang.String[] newSubstrings)
make substitutions in a string. |
static java.lang.String |
substring(java.lang.String string,
java.lang.String startPos,
java.lang.String lenString)
supports XSL substring |
static java.lang.String |
toCamelCase(java.lang.String s)
Description of the Method |
static java.lang.String |
truncate(java.lang.String s,
int maxlength)
return the first n characters of a string and add ellipses if truncated |
static void |
warning(java.lang.String s)
Warning message - nothing fancy at present |
static java.util.Hashtable |
xorTables(java.util.Hashtable a,
java.util.Hashtable b)
XOR 2 Hashtables inefficient except for small tables. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FORMAT_ASCII
public static final java.lang.String FORMAT_DOS
public static final java.lang.String FORMAT_EQUALS
public static final java.lang.String SPACE
public static final java.lang.String TAB
public static final java.lang.String RETURN
public static final java.lang.String NEWLINE
public static final java.lang.String FORMFEED
public static final java.lang.String WHITESPACE
public static final java.lang.String LBRAK
public static final java.lang.String RBRAK
public static final java.lang.String SHRIEK
public static final java.lang.String QUOT
public static final java.lang.String POUND
public static final java.lang.String DOLLAR
public static final java.lang.String PERCENT
public static final java.lang.String CARET
public static final java.lang.String AMP
public static final java.lang.String STAR
public static final java.lang.String UNDER
public static final java.lang.String MINUS
public static final java.lang.String PLUS
public static final java.lang.String EQUALS
public static final java.lang.String LCURLY
public static final java.lang.String RCURLY
public static final java.lang.String LSQUARE
public static final java.lang.String RSQUARE
public static final java.lang.String TILDE
public static final java.lang.String HASH
public static final java.lang.String COLON
public static final java.lang.String SEMICOLON
public static final java.lang.String ATSIGN
public static final java.lang.String APOS
public static final java.lang.String COMMA
public static final java.lang.String PERIOD
public static final java.lang.String SLASH
public static final java.lang.String QUERY
public static final java.lang.String LANGLE
public static final java.lang.String RANGLE
public static final java.lang.String PIPE
public static final java.lang.String BACKSLASH
public static final java.lang.String NONWHITEPUNC
public static final java.lang.String PUNC
public static final java.lang.String X_STAGO
public static final java.lang.String X_STAGC
public static final java.lang.String X_ETAGO
public static final java.lang.String X_ETAGC
public static final java.lang.String X_EMPTAGO
public static final java.lang.String X_EMPTAGC
public static final java.lang.String X_STARTDEF
public static final java.lang.String X_COMMENTO
public static final java.lang.String X_COMMENTC
public static final java.lang.String X_ENTDEFO
public static final java.lang.String X_ENTDEFC
public static final java.lang.String X_PARAMENTDEFO
public static final java.lang.String X_PARAMENTDEFC
public static final java.lang.String X_ELEMDEFO
public static final java.lang.String X_ELEMDEFC
public static final java.lang.String X_PARAMENTO
public static final java.lang.String X_PARAMENTC
public static final java.lang.String X_GENENTO
public static final java.lang.String X_GENENTC
public static final java.lang.String X_DOCTYPEO
public static final java.lang.String X_DOCTYPEE
public static final int UNKNOWN
public static final int CASE
public static final int IGNORECASE
public static final int BR_LOOKAHEAD
public static java.lang.String[] ROMAN_NUMERALS
public static final java.lang.String DOS
| Constructor Detail |
|---|
public CMLUtils()
| Method Detail |
|---|
public static boolean deleteFile(java.io.File file,
boolean deleteDirectory)
file - Description of the ParameterdeleteDirectory - Description of the Parameter
public static void copyFile(java.io.File inFile,
java.io.File outFile)
throws java.io.FileNotFoundException,
java.io.IOException
inFile - Description of the ParameteroutFile - Description of the Parameter
java.io.FileNotFoundException - Description of the Exception
java.io.IOException - Description of the Exception
public static java.lang.String dump(java.net.URL url)
throws java.lang.Exception
url - Description of the Parameter
java.lang.Exception - Description of the Exceptionpublic static void flush(java.lang.String s)
s - Description of the Parameterpublic static java.lang.String spaces(int nspace)
nspace - Description of the Parameter
public static java.lang.String getSuffix(java.lang.String filename)
filename - Description of the Parameter
public static int skipWhite(java.io.BufferedReader bReader)
throws java.lang.Exception
bReader - Description of the Parameter
java.lang.Exception - Description of the Exception
public static java.lang.String truncate(java.lang.String s,
int maxlength)
s - Description of the Parametermaxlength - Description of the Parameter
public static int getIntegerFromRoman(java.lang.String roman)
roman - Description of the Parameter
public static void setSystemProperty(java.lang.String property,
java.lang.String value)
property - The new systemProperty valuevalue - The new systemProperty value
public static void addToSystemProperties(java.lang.String urlString)
throws java.io.IOException
urlString - The feature to be added to the ToSystemProperties
attribute
java.io.IOException - Description of the Exception
public static java.lang.Object getNewInstance(java.lang.String className)
throws java.lang.Exception
className - Description of the Parameter
java.lang.Exception - Description of the Exceptionpublic static java.lang.String deQuote(java.lang.String s)
s - Description of the Parameter
public static java.lang.String rightTrim(java.lang.String s)
s - Description of the Parameter
public static java.lang.String leftTrim(java.lang.String s)
s - Description of the Parameter
public static int indexOfBalancedBracket(char lbrack,
java.lang.String s)
lbrack - Description of the Parameters - Description of the Parameter
public static java.util.Vector getCommaSeparatedStrings(java.lang.String s)
throws java.lang.Exception
s - Description of the Parameter
java.lang.Exception - Description of the Exception
public static java.lang.String createCommaSeparatedStrings(java.util.Vector v)
throws java.lang.Exception
v - Description of the Parameter
java.lang.Exception - Description of the Exception
public static java.util.Vector alternativeStringTokenizer(java.lang.String s,
char delim)
s - Description of the Parameterdelim - Description of the Parameter
public static java.util.Vector parseWhitespaceQuotedFields(java.lang.String s)
s - Description of the Parameter
public static java.lang.String quoteConcatenate(java.lang.String[] s)
s - Description of the Parameter
public static java.lang.String[] split(java.lang.String s)
s - Description of the Parameter
public static int indexOf(java.lang.String string,
java.lang.String[] strings,
int caseSensitivity)
string - Description of the Parameterstrings - Description of the ParametercaseSensitivity - Description of the Parameter
public static boolean equals(java.lang.String string1,
java.lang.String string2,
int sensitivity)
string1 - Description of the Parameterstring2 - Description of the Parametersensitivity - Description of the Parameter
public static java.lang.String removeHTML(java.lang.String s)
s - Description of the Parameter
public static void warning(java.lang.String s)
s - Description of the Parameterpublic static void message(java.lang.String s)
s - Description of the Parameterpublic static void error(java.lang.String s)
s - Description of the Parameterpublic static void bug(java.lang.String s)
s - Description of the Parameterpublic static void bug(java.lang.Exception e)
e - Description of the Parameter
public static java.io.File createNewFile(java.lang.String fileName)
throws java.io.IOException
fileName - Description of the Parameter
java.io.IOException - Description of the Exceptionpublic static java.lang.String getPWDName()
public static java.lang.String substituteString(java.lang.String s,
java.lang.String oldSubstring,
java.lang.String newSubstring,
int count)
s - Description of the ParameteroldSubstring - Description of the ParameternewSubstring - Description of the Parametercount - Description of the Parameter
public static java.lang.String substituteStrings(java.lang.String s,
java.lang.String[] oldSubstrings,
java.lang.String[] newSubstrings)
s - Description of the ParameteroldSubstrings - Description of the ParameternewSubstrings - Description of the Parameter
public static java.lang.String substituteDOSbyAscii(java.lang.String s)
s - Description of the Parameter
public static java.lang.String substituteEquals(java.lang.String s)
s - Description of the Parameter
public static boolean isAllowedFormat(java.lang.String format)
format - Description of the Parameter
public static java.util.Vector convertFormat(java.util.Vector vector,
java.lang.String format)
vector - Description of the Parameterformat - Description of the Parameter
public static java.lang.String capitalise(java.lang.String s)
s - Description of the Parameter
public static java.lang.String toCamelCase(java.lang.String s)
s - Description of the Parameter
public static java.lang.String escape(java.lang.String s,
char[] escapes,
java.lang.String[] escape1)
s - Description of the Parameterescapes - Description of the Parameterescape1 - Description of the Parameter
public static java.lang.String escape(java.lang.String s)
s - Description of the Parameter
public static boolean equals(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - Description of the Parameterobj2 - Description of the Parameter
public static void freeMemory(long mem)
mem - Description of the Parameterpublic java.lang.String addToClasspath(java.lang.String extraPath)
extraPath - The feature to be added to the ToClasspath attribute
public static int getIntFromHex(java.lang.String hex)
hex - Description of the Parameter
public static byte[] readByteArray(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException
filename - Description of the Parameter
java.io.FileNotFoundException - Description of the Exception
java.io.IOException - Description of the Exception
public static byte[] readByteArray(java.io.DataInputStream d)
throws java.io.IOException
d - Description of the Parameter
java.io.IOException - Description of the Exceptionpublic static java.lang.String stripISOControls(java.lang.String s)
s - Description of the Parameter
public static java.lang.String normaliseWhitespace(java.lang.String s)
s - Description of the Parameter
public static byte[] stripNewlines(byte[] b)
b - Description of the Parameter
public static boolean isRightMouseClick(java.awt.event.MouseEvent event)
event - Description of the Parameter
public static void registerApplet(java.applet.Applet applet)
applet - Description of the Parameterpublic static boolean isRegisteredApplet(java.applet.Applet applet)
applet - Description of the Parameter
public static java.lang.String makeDirectory(java.lang.String urlString)
urlString - Description of the Parameter
public static java.lang.String makeAbsoluteURL(java.lang.String url)
throws java.net.MalformedURLException
url - Description of the Parameter
java.net.MalformedURLException - Description of the Exception
public static java.lang.String makeAbsoluteURL(java.applet.Applet applet,
java.lang.String url)
throws java.net.MalformedURLException
applet - Description of the Parameterurl - Description of the Parameter
java.net.MalformedURLException - Description of the Exception
public static java.io.FileOutputStream getFileOutputStream(java.lang.String fileName)
throws java.io.FileNotFoundException
fileName - Description of the Parameter
java.io.FileNotFoundException - Description of the Exception
public static void readZip(java.lang.String fileName)
throws java.io.IOException
fileName - Description of the Parameter
java.io.IOException - Description of the Exception
public static java.lang.String outputInteger(int nPlaces,
int value)
throws java.lang.IllegalArgumentException
nPlaces - Description of the Parametervalue - Description of the Parameter
java.lang.IllegalArgumentException - Description of the Exception
public static java.lang.String outputFloat(int nPlaces,
int nDec,
double value)
throws java.lang.IllegalArgumentException
nPlaces - Description of the ParameternDec - Description of the Parametervalue - Description of the Parameter
java.lang.IllegalArgumentException - Description of the Exception
public static java.lang.String outputNumber(int nPlaces,
int nDec,
double c)
nPlaces - Description of the ParameternDec - Description of the Parameterc - Description of the Parameter
public static java.util.Hashtable invert(java.util.Hashtable table)
table - Description of the Parameter
public static java.util.Hashtable andTables(java.util.Hashtable a,
java.util.Hashtable b)
a - Description of the Parameterb - Description of the Parameter
public static java.util.Hashtable orTables(java.util.Hashtable a,
java.util.Hashtable b)
a - Description of the Parameterb - Description of the Parameter
public static java.util.Hashtable xorTables(java.util.Hashtable a,
java.util.Hashtable b)
a - Description of the Parameterb - Description of the Parameter
public static java.util.Vector getRepeatedValues(java.util.Vector v)
v - Description of the Parameter
public static java.util.Vector andVectors(java.util.Vector a,
java.util.Vector b)
a - Description of the Parameterb - Description of the Parameter
public static void addEnumerationToVector(java.util.Vector v,
java.util.Enumeration e)
v - The feature to be added to the EnumerationToVector attributee - The feature to be added to the EnumerationToVector attributepublic static void sort(java.lang.Object[] objs)
objs - Description of the Parameterpublic static void printChar()
public static void sortVector(java.util.Vector v)
v - Description of the Parameter
public static java.util.Vector and(java.util.Vector v1,
java.util.Vector v2)
v1 - Description of the Parameterv2 - Description of the Parameter
public static java.util.Vector not(java.util.Vector v1,
java.util.Vector v2)
v1 - Description of the Parameterv2 - Description of the Parameter
public static java.util.Vector or(java.util.Vector v1,
java.util.Vector v2)
v1 - Description of the Parameterv2 - Description of the Parameter
public static java.util.Hashtable and(java.util.Hashtable h1,
java.util.Hashtable h2)
h1 - Description of the Parameterh2 - Description of the Parameter
public static java.util.Hashtable not(java.util.Hashtable h1,
java.util.Hashtable h2)
h1 - Description of the Parameterh2 - Description of the Parameter
public static java.util.Hashtable or(java.util.Hashtable h1,
java.util.Hashtable h2)
h1 - Description of the Parameterh2 - Description of the Parameter
public static double sin(java.lang.String fString)
fString - Description of the Parameter
public static double cos(java.lang.String fString)
fString - Description of the Parameter
public static double log(java.lang.String fString)
fString - Description of the Parameter
public static java.lang.String substring(java.lang.String string,
java.lang.String startPos,
java.lang.String lenString)
string - Description of the ParameterstartPos - Description of the ParameterlenString - Description of the Parameter
public static void main(java.lang.String[] args)
args - Description of the Parameter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||