|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ajax4jsf.org.w3c.tidy.PPrint
public class PPrint
Pretty print parse tree. Block-level and unknown elements are printed on new lines and their contents indented 2 spaces Inline elements are printed inline. Inline content is wrapped on spaces (except in attribute values or preformatted text, after start tags and before end tags.
| Constructor Summary | |
|---|---|
PPrint(Configuration configuration)
Instantiates a new PPrint. |
|
| Method Summary | |
|---|---|
void |
addTransitionEffect(Lexer lexer,
Node root,
double duration)
Add meta element for page transition effect, this works on IE but not NS. |
void |
condFlushLine(Out fout,
int indent)
|
int |
countSlides(Node node)
Split parse tree by h2 elements and output to separate files. |
void |
createSlides(Lexer lexer,
Node root)
Creates slides from h2. |
void |
flushLine(Out fout,
int indent)
|
static int |
getUTF8(byte[] str,
int start,
int[] ch)
return one less than the number of bytes used by the UTF-8 byte sequence. |
void |
printSlide(Out fout,
short mode,
int indent,
Lexer lexer)
Called from printTree to print the content of a slide from the node slidecontent. |
void |
printTree(Out fout,
short mode,
int indent,
Lexer lexer,
Node node)
|
void |
printXMLTree(Out fout,
short mode,
int indent,
Lexer lexer,
Node node)
|
static int |
putUTF8(byte[] buf,
int start,
int c)
store char c as UTF-8 encoded byte stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PPrint(Configuration configuration)
configuration - configuration| Method Detail |
|---|
public static int getUTF8(byte[] str,
int start,
int[] ch)
str - points to the UTF-8 byte sequencestart - starting offset in strch - initialized to 1st byte, passed as an array to allow modification
public static int putUTF8(byte[] buf,
int start,
int c)
buf - start - c -
public void flushLine(Out fout,
int indent)
throws java.io.IOException
fout - indent -
java.io.IOException
public void condFlushLine(Out fout,
int indent)
throws java.io.IOException
fout - indent -
java.io.IOException
public void printTree(Out fout,
short mode,
int indent,
Lexer lexer,
Node node)
throws java.io.IOException
fout - mode - indent - lexer - node -
java.io.IOException
public void printXMLTree(Out fout,
short mode,
int indent,
Lexer lexer,
Node node)
throws java.io.IOException
fout - mode - indent - lexer - node -
java.io.IOExceptionpublic int countSlides(Node node)
node - root node
public void printSlide(Out fout,
short mode,
int indent,
Lexer lexer)
throws java.io.IOException
fout - mode - indent - lexer -
java.io.IOException
public void addTransitionEffect(Lexer lexer,
Node root,
double duration)
lexer - root - duration -
public void createSlides(Lexer lexer,
Node root)
lexer - Lexerroot - root node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||