|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.nwalsh.saxon6.CopyEmitter
A Saxon 6.0 Emitter that clones its input.
$Id: CopyEmitter.java,v 1.1 2000/11/28 23:05:55 ndw Exp $
Copyright (C) 2000 Norman Walsh.
This class provides a Saxon 6.* implementation of an emitter that manufactures a cloned result tree fragment.
The purpose of this emitter is to provide something for CalloutEmitter and NumberLinesEmitter to extend. This emitter simply copies all input to a new result tree fragment.
Change Log:
Initial release.
CalloutEmitter
,
NumberLinesEmitter
Constructor Summary | |
CopyEmitter(com.icl.saxon.om.NamePool namePool)
Constructor for the CopyEmitter. |
Method Summary | |
void |
characters(char[] chars,
int start,
int len)
Copy characters. |
void |
comment(char[] chars,
int start,
int length)
Copy comments. |
void |
endDocument()
Copy end document events. |
void |
endElement(int nameCode)
Copy end element events. |
com.icl.saxon.expr.FragmentValue |
getResultTreeFragment()
Return the result tree fragment constructed by replaying events through this emitter. |
void |
processingInstruction(java.lang.String name,
java.lang.String data)
Copy processing instructions. |
void |
setCharacterSet(com.icl.saxon.output.CharacterSet charset)
Copy set character set events. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Copy set document locator events. |
void |
setEscaping(boolean escaping)
Copy set escaping events. |
void |
setNamePool(com.icl.saxon.om.NamePool namePool)
Copy set name pool events. |
void |
setOutputDetails(com.icl.saxon.output.OutputDetails details)
Copy set output details events. |
void |
setUnparsedEntity(java.lang.String name,
java.lang.String uri)
Copy set unparsed entity events. |
void |
setWriter(java.io.Writer writer)
Copy set writer events. |
void |
startDocument()
Copy start document events. |
void |
startElement(int nameCode,
org.xml.sax.Attributes attributes,
int[] namespaces,
int nscount)
Copy start element events. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public CopyEmitter(com.icl.saxon.om.NamePool namePool)
Constructor for the CopyEmitter.
namePool
- The name pool to use for constructing elements and attributes.Method Detail |
public com.icl.saxon.expr.FragmentValue getResultTreeFragment()
Return the result tree fragment constructed by replaying events through this emitter.
public void characters(char[] chars, int start, int len) throws org.xml.sax.SAXException
public void comment(char[] chars, int start, int length) throws org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
public void endElement(int nameCode) throws org.xml.sax.SAXException
public void processingInstruction(java.lang.String name, java.lang.String data) throws org.xml.sax.SAXException
public void setCharacterSet(com.icl.saxon.output.CharacterSet charset) throws org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
public void setEscaping(boolean escaping) throws org.xml.sax.SAXException
public void setNamePool(com.icl.saxon.om.NamePool namePool)
public void setOutputDetails(com.icl.saxon.output.OutputDetails details) throws org.xml.sax.SAXException
public void setUnparsedEntity(java.lang.String name, java.lang.String uri) throws org.xml.sax.SAXException
public void setWriter(java.io.Writer writer) throws org.xml.sax.SAXException
public void startDocument() throws org.xml.sax.SAXException
public void startElement(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int nscount) throws org.xml.sax.SAXException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |