All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.util.Util
java.lang.Object
|
+----org.w3c.css.util.Util
- public final class Util
- extends Object
This class holds various utility methods.
-
fromHTMLFile
-
true if the input is a HTML file
-
importSecurity
-
true if the validator can import URL.
-
noErrorTrace
-
true if the validator doesn't need errors
-
onDebug
-
true if the user wants debug traces.
-
servlet
-
true if the validator runs in a servlet (security pbs)
-
displayFloat(Float)
- Display a float without .0 if necessary
-
displayFloat(float)
- Display a float without .0 if necessary
-
isWhiteSpace(char)
- Returns
true if the character is not a white space
-
strip(String)
- Suppress all white spaces
-
suppressWhiteSpace(String)
- Suppressed all white spaces in the beginning of the string
-
verbose(String)
- Print a message on System.err only if the user wants debug trace.
servlet
public static boolean servlet
-
true if the validator runs in a servlet (security pbs)
importSecurity
public static boolean importSecurity
-
true if the validator can import URL.
noErrorTrace
public static boolean noErrorTrace
-
true if the validator doesn't need errors
fromHTMLFile
public static boolean fromHTMLFile
-
true if the input is a HTML file
onDebug
public static boolean onDebug
-
true if the user wants debug traces.
- See Also:
- verbose
verbose
public static final void verbose(String s)
- Print a message on System.err only if the user wants debug trace.
suppressWhiteSpace
public static final String suppressWhiteSpace(String s)
- Suppressed all white spaces in the beginning of the string
strip
public static final String strip(String s)
- Suppress all white spaces
- Parameters:
- s - the string.
isWhiteSpace
public static final boolean isWhiteSpace(char c)
- Returns
true if the character is not a white space
- Parameters:
- c - the character
displayFloat
public static final String displayFloat(Float value)
- Display a float without .0 if necessary
displayFloat
public static final String displayFloat(float value)
- Display a float without .0 if necessary
All Packages Class Hierarchy This Package Previous Next Index