Package writer2latex.util
Class Misc
java.lang.Object
writer2latex.util.Misc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static final String
static final int[]
doubleIntArray
(int[] array) static final String
getAttribute
(Element node, String attribute) static final String
getAttribute
(Node node, String attribute) static final Element
getChildByTagName
(Node node, String sTagName) static final Element
getFirstChildElement
(Node node) static final float
static final int
getIntegerFromHex
(String sHex, int nDefault) static String
static final int
getPosInteger
(String sInteger, int nDefault) static byte[]
Read anInputStream
into abyte
arraystatic final String
int2alph
(int number, boolean bLetterSync) static final String
int2Alph
(int number, boolean bLetterSync) static final String
int2arabic
(int number) static final String
int2roman
(int number) static final String
int2Roman
(int number) static final boolean
static final boolean
static boolean
isLessThan
(String sThis, String sThat) static final boolean
static final String
static String
static int
min
(int n, int m) static final String
static final String
removeExtension
(String sName) static final String
static final String
trimDocumentName
(String name, String extension) static String
truncateLength
(String sValue) static String
static String
-
Constructor Details
-
Misc
public Misc()
-
-
Method Details
-
doubleIntArray
public static final int[] doubleIntArray(int[] array) -
int2roman
-
int2Roman
-
int2arabic
-
int2alph
-
int2Alph
-
getPosInteger
-
getFloat
-
getIntegerFromHex
-
min
public static int min(int n, int m) -
truncateLength
-
length2px
-
multiply
-
add
-
sub
-
isLessThan
-
abs
-
trimDocumentName
-
removeExtension
-
getAttribute
-
isElement
-
isElement
-
isText
-
getAttribute
-
getChildByTagName
-
getFirstChildElement
-
getPCDATA
-
urlEncode
-
urlDecode
-
makeHref
-
inputStreamToByteArray
Read an
InputStream
into abyte
array- Parameters:
is
- theInputStream
to read- Returns:
- a byte array with the contents read from the stream
- Throws:
IOException
- in case of any I/O errors.
-