ice.pilots.html4
Class DOMBuilder
java.lang.Object
ice.pilots.html4.DOMBuilder
- All Implemented Interfaces:
- ice.pilots.html4.LexCallback, ice.dombase.LexCallbackBase
- public final class DOMBuilder
- extends Object
- implements ice.pilots.html4.LexCallback
Builds a DOM tree out from events from the parser.
Can be used as a callback for XML Parser.
|
Method Summary |
void |
cdataBody(char[] ch,
int offset,
int length)
|
void |
documentCharset(String charset)
|
void |
elementAttribute(char[] ch,
int nameOffset,
int nameLength,
int prefixLength,
int valueOffset,
int valueLength)
|
void |
endDocument()
|
void |
endElement(ice.dombase.LexBase lex,
char[] ch,
int offset,
int length,
int prefixLength)
|
boolean |
isStopRequested()
|
void |
progress(int bytesRead,
ProgressDetail pd)
|
static void |
setLoadSingleOnly(StormBase sb)
Tell the pilots of the stormbase that it should only load
single files (ie: not autoload css,js and frame contents) |
void |
startDocument()
|
void |
startElement(ice.dombase.LexBase lex,
char[] ch,
int offset,
int length,
int prefixLength,
boolean isEmpty)
|
void |
textCharacters(char[] ch,
int text_start,
int length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMBuilder
public DOMBuilder(DDocument doc,
ThePilot pilot)
DOMBuilder
public DOMBuilder(DDocument doc,
DNode startNode,
ThePilot pilot)
DOMBuilder
public DOMBuilder(DDocument doc)
setLoadSingleOnly
public static void setLoadSingleOnly(StormBase sb)
- Tell the pilots of the stormbase that it should only load
single files (ie: not autoload css,js and frame contents)
isStopRequested
public boolean isStopRequested()
- Specified by:
isStopRequested in interface ice.dombase.LexCallbackBase
progress
public void progress(int bytesRead,
ProgressDetail pd)
- Specified by:
progress in interface ice.pilots.html4.LexCallback
startDocument
public void startDocument()
- Specified by:
startDocument in interface ice.dombase.LexCallbackBase
endDocument
public void endDocument()
- Specified by:
endDocument in interface ice.dombase.LexCallbackBase
documentCharset
public void documentCharset(String charset)
- Specified by:
documentCharset in interface ice.dombase.LexCallbackBase
cdataBody
public void cdataBody(char[] ch,
int offset,
int length)
- Specified by:
cdataBody in interface ice.dombase.LexCallbackBase
textCharacters
public void textCharacters(char[] ch,
int text_start,
int length)
- Specified by:
textCharacters in interface ice.dombase.LexCallbackBase
startElement
public void startElement(ice.dombase.LexBase lex,
char[] ch,
int offset,
int length,
int prefixLength,
boolean isEmpty)
- Specified by:
startElement in interface ice.dombase.LexCallbackBase
elementAttribute
public void elementAttribute(char[] ch,
int nameOffset,
int nameLength,
int prefixLength,
int valueOffset,
int valueLength)
- Specified by:
elementAttribute in interface ice.dombase.LexCallbackBase
endElement
public void endElement(ice.dombase.LexBase lex,
char[] ch,
int offset,
int length,
int prefixLength)
- Specified by:
endElement in interface ice.dombase.LexCallbackBase