|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.event.ProxyReceiver
A ProxyReceiver is an Receiver that filters data before passing it to another underlying Receiver.
Field Summary | |
protected Receiver |
baseReceiver
|
protected NamePool |
namePool
|
protected String |
systemId
|
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
ProxyReceiver()
|
Method Summary | |
void |
attribute(int nameCode,
int typeCode,
CharSequence value,
int properties)
Notify an attribute. |
void |
characters(CharSequence chars,
int properties)
Character data |
void |
comment(CharSequence chars,
int properties)
Output a comment |
void |
endDocument()
End of document |
void |
endElement()
End of element |
NamePool |
getNamePool()
Get the namePool in which all name codes can be found |
String |
getSystemId()
|
Receiver |
getUnderlyingReceiver()
Get the underlying Receiver (that is, the next one in the pipeline) |
void |
namespace(int namespaceCode,
int properties)
Notify a namespace. |
void |
processingInstruction(String target,
CharSequence data,
int properties)
Processing Instruction |
void |
setDocumentLocator(Locator locator)
Set the Document Locator |
void |
setNamePool(NamePool pool)
Set the name pool to be used for all name codes |
void |
setSystemId(String systemId)
Set the System ID of the destination tree |
void |
setUnderlyingReceiver(Receiver receiver)
Set the underlying receiver. |
void |
setUnparsedEntity(String name,
String uri,
String publicId)
Set the URI for an unparsed entity in the document. |
void |
startContent()
Notify the start of the content, that is, the completion of all attributes and namespaces. |
void |
startDocument()
Start of document |
void |
startElement(int nameCode,
int typeCode,
int properties)
Notify the start of an element |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Receiver baseReceiver
protected NamePool namePool
protected String systemId
Constructor Detail |
public ProxyReceiver()
Method Detail |
public void setSystemId(String systemId)
Receiver
setSystemId
in interface Receiver
public String getSystemId()
getSystemId
in interface Result
public void setUnderlyingReceiver(Receiver receiver)
public Receiver getUnderlyingReceiver()
public void setNamePool(NamePool pool)
setNamePool
in interface Receiver
public NamePool getNamePool()
Receiver
getNamePool
in interface Receiver
public void startDocument() throws TransformerException
startDocument
in interface Receiver
TransformerException
public void endDocument() throws TransformerException
endDocument
in interface Receiver
TransformerException
public void startElement(int nameCode, int typeCode, int properties) throws TransformerException
startElement
in interface Receiver
nameCode
- integer code identifying the name of the element within the name pool.typeCode
- integer code identifying the element's type within the name pool.
TransformerException
public void namespace(int namespaceCode, int properties) throws TransformerException
namespace
in interface Receiver
namespaceCode
- an integer: the top half is a prefix code, the bottom half a URI code.
These may be translated into an actual prefix and URI using the name pool. A prefix code of
zero represents the empty prefix (that is, the default namespace). A URI code of zero represents
a URI of "", that is, a namespace undeclaration.
IllegalStateException:
- attempt to output a namespace when there is no open element
start tag
TransformerException
public void attribute(int nameCode, int typeCode, CharSequence value, int properties) throws TransformerException
attribute
in interface Receiver
nameCode
- The name of the attribute, as held in the name pooltypeCode
- The type of the attribute, as held in the name poolproperties
- Bit significant value. The following bits are defined:
IllegalStateException:
- attempt to output an attribute when there is no open element
start tag
TransformerException
public void startContent() throws TransformerException
startContent
in interface Receiver
TransformerException
public void endElement() throws TransformerException
endElement
in interface Receiver
TransformerException
public void characters(CharSequence chars, int properties) throws TransformerException
characters
in interface Receiver
chars
- The charactersproperties
- Bit significant value. The following bits are defined:
TransformerException
public void processingInstruction(String target, CharSequence data, int properties) throws TransformerException
processingInstruction
in interface Receiver
target
- The PI name. This must be a legal name (it will not be checked).data
- The data portion of the processing instructionproperties
- Additional information about the PI. The following bits are
defined:
TransformerException
public void comment(CharSequence chars, int properties) throws TransformerException
comment
in interface Receiver
chars
- The content of the commentproperties
- Additional information about the comment. The following bits are
defined:
TransformerException
public void setUnparsedEntity(String name, String uri, String publicId) throws TransformerException
setUnparsedEntity
in interface Receiver
name
- The name of the unparsed entityuri
- The system identifier of the unparsed entitypublicId
- The public identifier of the unparsed entity
TransformerException
public void setDocumentLocator(Locator locator) throws TransformerException
setDocumentLocator
in interface Receiver
TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |