|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.output.Emitter com.icl.saxon.output.ProxyEmitter com.icl.saxon.om.Stripper
The Stripper class maintains details of which elements need to be stripped. The code is written to act as a SAX filter to do the stripping.
Field Summary |
Fields inherited from class com.icl.saxon.output.ProxyEmitter |
baseEmitter, outputProperties |
Fields inherited from class com.icl.saxon.output.Emitter |
locator, outputStream, systemId, writer |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
protected |
Stripper()
Default constructor for use in subclasses |
|
Stripper(Mode stripperRules)
create a Stripper and initialise variables |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Callback interface for SAX: not for application use |
void |
endElement(int nameCode)
Callback interface for SAX: not for application use |
boolean |
getPreserveAll()
Determine if all whitespace is to be preserved (in this case, no further testing is needed) |
boolean |
getStripAll()
Determine if all whitespace is to be stripped (in this case, no further testing is needed) |
boolean |
isSpacePreserving(int nameCode)
Decide whether an element is in the set of white-space preserving element types |
void |
setController(Controller controller)
Set the Controller to be used |
void |
setPreserveAll()
Specify that all whitespace nodes are to be preserved |
void |
setStripAll()
Specify that all whitespace nodes are to be stripped |
void |
startDocument()
Callback interface for SAX: not for application use |
void |
startElement(int nameCode,
org.xml.sax.Attributes atts,
int[] namespaces,
int nscount)
Callback interface for SAX: not for application use |
Methods inherited from class com.icl.saxon.output.ProxyEmitter |
comment, endDocument, processingInstruction, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setUnderlyingEmitter, setUnparsedEntity, setWriter |
Methods inherited from class com.icl.saxon.output.Emitter |
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Stripper()
public Stripper(Mode stripperRules)
Method Detail |
public void setPreserveAll()
public boolean getPreserveAll()
public void setStripAll()
public boolean getStripAll()
public void setController(Controller controller)
public boolean isSpacePreserving(int nameCode)
public void startDocument() throws TransformerException
startDocument
in class ProxyEmitter
TransformerException
public void startElement(int nameCode, org.xml.sax.Attributes atts, int[] namespaces, int nscount) throws TransformerException
startElement
in class ProxyEmitter
TransformerException
public void endElement(int nameCode) throws TransformerException
endElement
in class ProxyEmitter
TransformerException
public void characters(char[] ch, int start, int length) throws TransformerException
characters
in class ProxyEmitter
TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |