|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.platform.web.css.CSSProcessor
public class CSSProcessor
Class to parse CSS stylesheets in order to manipulate them within Guise.
| Constructor Summary | |
|---|---|
CSSProcessor()
|
|
| Method Summary | |
|---|---|
static void |
parseDeclarationBlock(com.globalmentor.io.ParseReader parseReader,
Rule rule)
Parses an input stream is expected to contain a block of declaration names and values, with appropriate beginning and ending delimiters. |
static boolean |
parseDeclarations(com.globalmentor.io.ParseReader parseReader,
Rule rule)
Parses an input stream is expected to contain a set of declaration names and values. |
protected static Rule |
parseRule(com.globalmentor.io.ParseReader parseReader)
Parses an input stream that is expected to begin with a CSS rule. |
protected static void |
parseStylesheetContent(com.globalmentor.io.ParseReader parseReader,
CSSStylesheet stylesheet)
Parses an input stream that contains stylesheet information. |
CSSStylesheet |
process(com.globalmentor.io.ParseReader parseReader)
Processes a CSS stylesheet. |
protected static void |
skipWhitespaceCommentsEOF(com.globalmentor.io.ParseReader parseReader)
Skips whitespace and comments without throwing an error if the end of the input was reached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSSProcessor()
| Method Detail |
|---|
protected static void skipWhitespaceCommentsEOF(com.globalmentor.io.ParseReader parseReader)
throws java.io.IOException
parseReader - The reader from which to retrieve characters.
java.io.IOException
public static boolean parseDeclarations(com.globalmentor.io.ParseReader parseReader,
Rule rule)
throws java.io.IOException
parseReader - The reader from which to retrieve characters.rule - The rule which will hold the declarations.
true if the end-of-rule-group character was found, false if the end of the stream was reached.
java.io.IOException
public static void parseDeclarationBlock(com.globalmentor.io.ParseReader parseReader,
Rule rule)
throws java.io.IOException
parseReader - The reader from which to retrieve characters.rule - The rule which will hold the declarations.
java.io.IOException
protected static Rule parseRule(com.globalmentor.io.ParseReader parseReader)
throws java.io.IOException
parseReader - The reader from which to retrieve characters.
java.io.IOException
protected static void parseStylesheetContent(com.globalmentor.io.ParseReader parseReader,
CSSStylesheet stylesheet)
throws java.io.IOException
parseReader - The reader from which to retrieve characters.stylesheet - The stylesheet being constructed.
java.io.IOException
public CSSStylesheet process(com.globalmentor.io.ParseReader parseReader)
throws java.io.IOException
parseReader - The reader from which to retrieve characters.
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||