|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.Utilities
public class Utilities
A collection of convenience methods that were present in many different iText classes.
Constructor Summary | |
---|---|
Utilities()
|
Method Summary | |
---|---|
static java.lang.Object[][] |
addToArray(java.lang.Object[][] original,
java.lang.Object[] item)
Utility method to extend an array. |
static boolean |
checkTrueOrFalse(java.util.Properties attributes,
java.lang.String key)
Checks for a true/false value of a key in a Properties object. |
static java.util.Set |
getKeySet(java.util.Hashtable table)
Gets the keys of a Hashtable |
static void |
skip(java.io.InputStream is,
int size)
This method is an alternative for the InputStream.skip()
-method that doesn't seem to work properly for big values of size
. |
static java.net.URL |
toURL(java.lang.String filename)
This method makes a valid URL from a given filename. |
static java.lang.String |
unEscapeURL(java.lang.String src)
Unescapes an URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
public static java.util.Set getKeySet(java.util.Hashtable table)
table
- a Hashtable
public static java.lang.Object[][] addToArray(java.lang.Object[][] original, java.lang.Object[] item)
original
- the original array or null
item
- the item to be added to the array
public static boolean checkTrueOrFalse(java.util.Properties attributes, java.lang.String key)
attributes
- key
-
public static java.lang.String unEscapeURL(java.lang.String src)
src
- the url to unescape
public static java.net.URL toURL(java.lang.String filename) throws java.net.MalformedURLException
This method makes the conversion of this library from the JAVA 2 platform to a JDK1.1.x-version easier.
filename
- a given filename
java.net.MalformedURLException
public static void skip(java.io.InputStream is, int size) throws java.io.IOException
InputStream.skip()
-method that doesn't seem to work properly for big values of size
.
is
- the InputStream
size
- the number of bytes to skip
java.io.IOException
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |