org.apache.batik.css.parser

Class ScannerUtilities

public class ScannerUtilities extends Object

A collection of utility functions for a CSS scanner.
Field Summary
protected static int[]HEXADECIMAL
The set of the valid hexadecimal characters.
protected static int[]IDENTIFIER_START
The set of the valid identifier start characters.
protected static int[]NAME
The set of the valid name characters.
protected static int[]STRING
The set of the valid string characters.
protected static int[]URI
The set of the valid uri characters.
Constructor Summary
protected ScannerUtilities()
This class does not need to be instantiated.
Method Summary
static booleanisCSSHexadecimalCharacter(char c)
Tests whether the given character is a valid hexadecimal character.
static booleanisCSSIdentifierStartCharacter(char c)
Tests whether the given character is a valid identifier start character.
static booleanisCSSNameCharacter(char c)
Tests whether the given character is a valid name character.
static booleanisCSSSpace(char c)
Tests whether the given character is a valid space.
static booleanisCSSStringCharacter(char c)
Tests whether the given character is a valid string character.
static booleanisCSSURICharacter(char c)
Tests whether the given character is a valid URI character.

Field Detail

HEXADECIMAL

protected static final int[] HEXADECIMAL
The set of the valid hexadecimal characters.

IDENTIFIER_START

protected static final int[] IDENTIFIER_START
The set of the valid identifier start characters.

NAME

protected static final int[] NAME
The set of the valid name characters.

STRING

protected static final int[] STRING
The set of the valid string characters.

URI

protected static final int[] URI
The set of the valid uri characters.

Constructor Detail

ScannerUtilities

protected ScannerUtilities()
This class does not need to be instantiated.

Method Detail

isCSSHexadecimalCharacter

public static boolean isCSSHexadecimalCharacter(char c)
Tests whether the given character is a valid hexadecimal character.

isCSSIdentifierStartCharacter

public static boolean isCSSIdentifierStartCharacter(char c)
Tests whether the given character is a valid identifier start character.

isCSSNameCharacter

public static boolean isCSSNameCharacter(char c)
Tests whether the given character is a valid name character.

isCSSSpace

public static boolean isCSSSpace(char c)
Tests whether the given character is a valid space.

isCSSStringCharacter

public static boolean isCSSStringCharacter(char c)
Tests whether the given character is a valid string character.

isCSSURICharacter

public static boolean isCSSURICharacter(char c)
Tests whether the given character is a valid URI character.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.