| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectgnu.xml.pipeline.EventFiltergnu.xml.pipeline.XIncludeFilter#include of C/C++ but
works for XML documents as well as unparsed text files.
Restrictions from the 17-Sept-2002 CR draft of XInclude are as follows:
setSavingPrefixes(). You are strongly advised to do this.
Note that XInclude allows highly incompatible implementations, which
are specialized to handle application-specific infoset extensions. Some
such implementations can be implemented by subclassing this one, but
they may only be substituted in applications at "user option".
TBD: "IURI" handling.
Field Summary |
Fields inherited from class gnu.xml.pipeline.EventFilter | |
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI | |
Constructor Summary | |
| |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
int |
|
int |
|
String |
|
String |
|
void |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public void characters(ch[] ,
int start,
int length)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- characters in interface ContentHandler
- Overrides:
- characters in interface EventFilter
public void comment(ch[] ,
int start,
int length)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- comment in interface LexicalHandler
- Overrides:
- comment in interface EventFilter
public void endCDATA()
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- endCDATA in interface LexicalHandler
- Overrides:
- endCDATA in interface EventFilter
public void endDocument()
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- endDocument in interface ContentHandler
- Overrides:
- endDocument in interface EventFilter
public void endElement(String uri,
String localName,
String qName)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- endElement in interface ContentHandler
- Overrides:
- endElement in interface EventFilter
public void endEntity(String name)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any.
- Specified by:
- endEntity in interface LexicalHandler
- Overrides:
- endEntity in interface EventFilter
public void endPrefixMapping(String prefix)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- endPrefixMapping in interface ContentHandler
- Overrides:
- endPrefixMapping in interface EventFilter
public void externalEntityDecl(String name,
String publicId,
String systemId)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- externalEntityDecl in interface DeclHandler
- Overrides:
- externalEntityDecl in interface EventFilter
public int getColumnNumber()
Used for proxy locator; do not call directly.
- Specified by:
- getColumnNumber in interface Locator
public int getLineNumber()
Used for proxy locator; do not call directly.
- Specified by:
- getLineNumber in interface Locator
public String getPublicId()
Used for proxy locator; do not call directly.
- Specified by:
- getPublicId in interface Locator
public String getSystemId()
Used for proxy locator; do not call directly.
- Specified by:
- getSystemId in interface Locator
public void ignorableWhitespace(ch[] ,
int start,
int length)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- ignorableWhitespace in interface ContentHandler
- Overrides:
- ignorableWhitespace in interface EventFilter
public boolean isSavingPrefixes()
Returns the flag controlling the setting of the SAX2 namespace-prefixes flag when parsing included documents. The default value is the SAX2 default (false), which discards information that can be useful.
public void processingInstruction(String target,
String value)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- processingInstruction in interface ContentHandler
- Overrides:
- processingInstruction in interface EventFilter
public void setDocumentLocator(Locator locator)
Passes "this" down the filter chain as a proxy locator.
- Specified by:
- setDocumentLocator in interface ContentHandler
- Overrides:
- setDocumentLocator in interface EventFilter
public void setSavingPrefixes(boolean flag)
Assigns the flag controlling the setting of the SAX2 namespace-prefixes flag.
public void skippedEntity(String name)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- skippedEntity in interface ContentHandler
- Overrides:
- skippedEntity in interface EventFilter
public void startCDATA()
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- startCDATA in interface LexicalHandler
- Overrides:
- startCDATA in interface EventFilter
public void startDocument()
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- startDocument in interface ContentHandler
- Overrides:
- startDocument in interface EventFilter
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- startElement in interface ContentHandler
- Overrides:
- startElement in interface EventFilter
public void startEntity(String name)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any.
- Specified by:
- startEntity in interface LexicalHandler
- Overrides:
- startEntity in interface EventFilter
public void startPrefixMapping(String prefix,
String uri)
throws SAXExceptionSAX2: passes this callback to the next consumer, if any
- Specified by:
- startPrefixMapping in interface ContentHandler
- Overrides:
- startPrefixMapping in interface EventFilter