|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ctc.wstx.io.WstxInputData
com.ctc.wstx.sr.StreamScanner
com.ctc.wstx.sr.WstxStreamReader
com.ctc.wstx.sr.FullStreamReader
Implementation of XMLStreamReader that builds on
WstxStreamReader, but adds full DTD-handling, including
DTD validation
| Field Summary |
| Fields inherited from class com.ctc.wstx.sr.WstxStreamReader |
DEFAULT_NS_PREFIX, mAttrCollector, mCfgCoalesceText, mCfgLazyParsing, mCfgNormalizeAttrs, mCfgNormalizeLFs, mCfgReplaceEntities, mCfgReportTextAsChars, mConfigFlags, mCurrEntity, mCurrToken, mDocStandalone, mDtdPublicId, mDtdSystemId, mElementStack, mGeneralEntities, mOwner, mShortestTextSegment, mStDoctypeFound, mStEmptyElem, mStTextThreshold, mTokenState, mVldContent, sPrefixXml, sPrefixXmlns |
| Fields inherited from class com.ctc.wstx.sr.StreamScanner |
CHAR_CR_LF_OR_NULL, CHAR_FIRST_PURE_TEXT, CHAR_LOWEST_LEGAL_LOCALNAME_CHAR, INT_CR_LF_OR_NULL, mCfgNsEnabled, mConfig, mInput, mNameBuffer, mReporter, mRootInput, mTextBuffer, mTokenInputCol, mTokenInputRow, mTokenInputTotal |
| Fields inherited from class com.ctc.wstx.io.WstxInputData |
CHAR_NULL, CHAR_SPACE, INT_NULL, INT_SPACE, MAX_UNICODE_CHAR, mCurrInputProcessed, mCurrInputRow, mCurrInputRowStart, mInputBuffer, mInputLen, mInputPtr |
| Fields inherited from interface org.codehaus.stax2.XMLStreamReader2 |
FEATURE_DTD_OVERRIDE |
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
| Method Summary | |
protected DTDId |
constructDtdId(java.lang.String pubId,
java.lang.String sysId)
|
protected DTDId |
constructDtdId(java.net.URL sysId)
|
static FullStreamReader |
createFullStreamReader(BranchingReaderSource input,
ReaderCreator owner,
ReaderConfig cfg,
InputBootstrapper bs)
Factory method for constructing readers. |
protected void |
finishDTD(boolean copyContents)
This method gets called to handle remainder of DOCTYPE declaration, essentially the optional internal subset. |
java.lang.Object |
getProcessedDTD()
Note: DTD-handling sub-classes need to override this method. |
java.lang.Object |
getProperty(java.lang.String name)
|
protected void |
reportInvalidContent(int evtType)
Method called by lower-level parsing code when invalid content (anything inside element with 'empty' content spec; text inside non-mixed element etc) is found during basic scanning. |
void |
setFeature(java.lang.String name,
java.lang.Object value)
Method that can be used to set per-reader features such as configuration settings; both generic ones (names for which are defined as constants in this class), and implementation dependant ones. |
protected DTDSubset |
setFeatureDTDOverride(java.lang.Object value)
Actual method for setting override for DOCTYPE declaration override. |
| Methods inherited from class com.ctc.wstx.io.WstxInputData |
copyBufferStateFrom, getCharDesc, is11NameChar, is11NameStartChar, isSpaceChar |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.stax2.LocationInfo |
getCurrentLocation, getStartLocation |
| Method Detail |
public static FullStreamReader createFullStreamReader(BranchingReaderSource input,
ReaderCreator owner,
ReaderConfig cfg,
InputBootstrapper bs)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
owner - "Owner" of this reader, factory that created the reader;
needed for returning updated symbol table information after parsing.input - Input source used to read the XML document.cfg - Object that contains reader configuration info.
java.io.IOException
javax.xml.stream.XMLStreamExceptionpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface javax.xml.stream.XMLStreamReadergetProperty in class WstxStreamReader
public void setFeature(java.lang.String name,
java.lang.Object value)
XMLStreamReader2
Note: although some feature names are shared with
XMLStreamReader2.getFeature(java.lang.String), not all are: some features are read-only,
some write-only
setFeature in interface XMLStreamReader2setFeature in class WstxStreamReader
protected final DTDSubset setFeatureDTDOverride(java.lang.Object value)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamExceptionpublic java.lang.Object getProcessedDTD()
WstxStreamReaderNote: DTD-handling sub-classes need to override this method.
getProcessedDTD in interface DTDInfogetProcessedDTD in class WstxStreamReader
protected void finishDTD(boolean copyContents)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
NOTE: Since this method overrides the default implementation, make sure you do NOT change the method signature.
finishDTD in class WstxStreamReadercopyContents - If true, will copy contents of the internal
subset of DOCTYPE declaration
in the text buffer (in addition to parsing it for actual use); if
false, will only do parsing.
java.io.IOException
javax.xml.stream.XMLStreamException
protected DTDId constructDtdId(java.lang.String pubId,
java.lang.String sysId)
throws java.io.IOException
java.io.IOException
protected DTDId constructDtdId(java.net.URL sysId)
throws java.io.IOException
java.io.IOException
protected void reportInvalidContent(int evtType)
throws WstxException
reportInvalidContent in class WstxStreamReaderWstxException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||