|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jclark.xsl.sax2.OutputMethodDefaulter
public class OutputMethodDefaulter
automagically decides to use the html output method if the first start element name is "html" in no namespace
Recieves SAX parse events from a ResultBase, till it gets a look at the root element's name.
Tells the ResultBase that had been sending it SAX parse events what this has learned. The result base will switch to an appropriate ContentHandler. This then sends any events it has queued up while waiting to see the root element name, then is never used again during the transform.
Nested Class Summary | |
---|---|
(package private) static class |
OutputMethodDefaulter.CharactersEvent
|
(package private) static class |
OutputMethodDefaulter.CommentEvent
|
(package private) static class |
OutputMethodDefaulter.Event
|
(package private) static class |
OutputMethodDefaulter.IgnorableWhitespaceEvent
|
(package private) static class |
OutputMethodDefaulter.ProcessingInstructionEvent
|
(package private) static class |
OutputMethodDefaulter.RawCharactersEvent
|
Constructor Summary | |
---|---|
OutputMethodDefaulter(ResultBase result,
OutputMethod outputMethod)
Construct with the guy who's gonna be sending us events and whatever the stylesheet's told us about the output parameters |
Method Summary | |
---|---|
void |
characters(char[] buf,
int off,
int len)
|
void |
comment(java.lang.String content)
recieve notification that a comment has been encountered in the parse |
void |
endDocument()
receive notice of doc's end |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
receive notice of an element's end ... |
void |
endPrefixMapping(java.lang.String prefix)
|
void |
ignorableWhitespace(char[] buf,
int off,
int len)
|
void |
processingInstruction(java.lang.String target,
java.lang.String content)
|
void |
rawCharacters(java.lang.String chars)
|
void |
setDocumentLocator(org.xml.sax.Locator loc)
|
void |
skippedEntity(java.lang.String name)
|
void |
startDocument()
receive notice of doc's start |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
the first start element, if it's "html" and in no namespace, then we switch to an html contentHandler -- yucchh |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String namespace)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
OutputMethodDefaulter(ResultBase result, OutputMethod outputMethod)
Method Detail |
---|
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
public void characters(char[] buf, int off, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] buf, int off, int len) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String content)
processingInstruction
in interface org.xml.sax.ContentHandler
public void setDocumentLocator(org.xml.sax.Locator loc)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void startPrefixMapping(java.lang.String prefix, java.lang.String namespace)
startPrefixMapping
in interface org.xml.sax.ContentHandler
public void endPrefixMapping(java.lang.String prefix)
endPrefixMapping
in interface org.xml.sax.ContentHandler
public void skippedEntity(java.lang.String name)
skippedEntity
in interface org.xml.sax.ContentHandler
public void comment(java.lang.String content)
CommentHandler
comment
in interface CommentHandler
public void rawCharacters(java.lang.String chars)
rawCharacters
in interface RawCharactersHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |