Uses of Class
com.ctc.wstx.io.WstxInputSource
-
Packages that use WstxInputSource Package Description com.ctc.wstx.dtd Package that contains Woodstox classes that implement DTD handling.com.ctc.wstx.ent Package contains internal entity object implementations, which are used by stream reader classes, but parsed by dtd functionality.com.ctc.wstx.io Low-level classes that are used to abstract most details of stream I/O access from actual parsing classes.com.ctc.wstx.sr This package contains supporting code for handling namespace information; element stacks that keep track of elements parsed and such. -
-
Uses of WstxInputSource in com.ctc.wstx.dtd
Methods in com.ctc.wstx.dtd with parameters of type WstxInputSource Modifier and Type Method Description private java.lang.StringFullDTDReader. entityDesc(WstxInputSource input)static DTDSubsetFullDTDReader. flattenExternalSubset(WstxInputSource src, java.io.Writer flattenWriter, boolean inclComments, boolean inclConditionals, boolean inclPEs)Method that will parse, process and output contents of an external DTD subset.private EntityDeclFullDTDReader. handleExternalEntityDecl(WstxInputSource inputSource, boolean isParam, java.lang.String id, char c, javax.xml.stream.Location evtLoc)Method that handles rest of external entity declaration, after it's been figured out entity is not internal (does not continue with a quote).protected voidFullDTDReader. handleGreedyEntityProblem(WstxInputSource input)protected voidFullDTDReader. handleIncompleteEntityProblem(WstxInputSource closing)Handling of PE matching problems is actually intricate; one type will be a WFC ("PE Between Declarations", which refers to PEs that start from outside declarations), and another just a VC ("Proper Declaration/PE Nesting", when PE is contained within declaration)protected voidMinimalDTDReader. handleIncompleteEntityProblem(WstxInputSource closing)Since improper entity/PE nesting is VC, not WFC, let's not react to this failure at all when only skipping the DTD subset.protected voidFullDTDReader. initInputSource(WstxInputSource newInput, boolean isExt, java.lang.String entityId)private voidFullDTDReader. loadMoreScoped(WstxInputSource currScope, java.lang.String entityName, javax.xml.stream.Location loc)static DTDSubsetFullDTDReader. readExternalSubset(WstxInputSource src, ReaderConfig cfg, DTDSubset intSubset, boolean constructFully, int xmlVersion)Method called to read in the external subset definition.static DTDSubsetFullDTDReader. readInternalSubset(WstxInputData srcData, WstxInputSource input, ReaderConfig cfg, boolean constructFully, int xmlVersion)Method called to read in the internal subset definition.static voidMinimalDTDReader. skipInternalSubset(WstxInputData srcData, WstxInputSource input, ReaderConfig cfg)Method that just skims through structure of internal subset, but without doing any sort of validation, or parsing of contents.Constructors in com.ctc.wstx.dtd with parameters of type WstxInputSource Constructor Description FullDTDReader(WstxInputSource input, ReaderConfig cfg, boolean constructFully, int xmlVersion)Constructor used for reading/skipping internal subset.FullDTDReader(WstxInputSource input, ReaderConfig cfg, boolean isExt, DTDSubset intSubset, boolean constructFully, int xmlVersion)Common initialization part of int/ext subset constructors.FullDTDReader(WstxInputSource input, ReaderConfig cfg, DTDSubset intSubset, boolean constructFully, int xmlVersion)Constructor used for reading external subset.MinimalDTDReader(WstxInputSource input, ReaderConfig cfg)Constructor used for reading/skipping internal subset.MinimalDTDReader(WstxInputSource input, ReaderConfig cfg, boolean isExt)Common initialization part of int/ext subset constructors. -
Uses of WstxInputSource in com.ctc.wstx.ent
Methods in com.ctc.wstx.ent that return WstxInputSource Modifier and Type Method Description abstract WstxInputSourceEntityDecl. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)Method called to create the new input source through which expansion value of the entity can be read.abstract WstxInputSourceExtEntity. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)WstxInputSourceIntEntity. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)WstxInputSourceParsedExtEntity. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)WstxInputSourceUnparsedExtEntity. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)Methods in com.ctc.wstx.ent with parameters of type WstxInputSource Modifier and Type Method Description abstract WstxInputSourceEntityDecl. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)Method called to create the new input source through which expansion value of the entity can be read.abstract WstxInputSourceExtEntity. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)WstxInputSourceIntEntity. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)WstxInputSourceParsedExtEntity. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)WstxInputSourceUnparsedExtEntity. expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion) -
Uses of WstxInputSource in com.ctc.wstx.io
Subclasses of WstxInputSource in com.ctc.wstx.io Modifier and Type Class Description classBaseInputSourceAbstract base class that implements shared functionality that all currentWstxInputSourceimplementations Woodstox includes need.classBranchingReaderSourceSpecialized input source that can "branch" input it reads; essentially both giving out read data AND also writing it out to a Writer.classCharArraySourceInput source that reads input from a static char array, usually used when expanding internal entities.classReaderSourceInput source that reads input via a Reader.Fields in com.ctc.wstx.io declared as WstxInputSource Modifier and Type Field Description protected WstxInputSourceWstxInputSource. mParentParent in input source stackMethods in com.ctc.wstx.io that return WstxInputSource Modifier and Type Method Description static WstxInputSourceInputSourceFactory. constructCharArraySource(WstxInputSource parent, java.lang.String fromEntity, char[] text, int offset, int len, javax.xml.stream.Location loc, java.net.URL src)Factory method usually used to expand internal parsed entities; in which case context remains mostly the same.WstxInputSourceWstxInputSource. getParent()static WstxInputSourceDefaultInputResolver. resolveEntity(WstxInputSource parent, java.net.URL pathCtxt, java.lang.String entityName, java.lang.String publicId, java.lang.String systemId, javax.xml.stream.XMLResolver customResolver, ReaderConfig cfg, int xmlVersion)Basic external resource resolver implementation; usable both with DTD and entity resolution.static WstxInputSourceDefaultInputResolver. resolveEntityUsing(WstxInputSource refCtxt, java.lang.String entityName, java.lang.String publicId, java.lang.String systemId, javax.xml.stream.XMLResolver resolver, ReaderConfig cfg, int xmlVersion)A very simple utility expansion method used generally when the only way to resolve an entity is via passed resolver; and where failing to resolve it is not fatal.protected static WstxInputSourceDefaultInputResolver. sourceFrom(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.lang.Object o)Factory method that accepts various types of Objects, and tries to create aWstxInputSourcefrom it.private static WstxInputSourceDefaultInputResolver. sourceFromIS(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.io.InputStream is, java.lang.String pubId, java.lang.String sysId)private static WstxInputSourceDefaultInputResolver. sourceFromR(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.io.Reader r, java.lang.String pubId, java.lang.String sysId)private static WstxInputSourceDefaultInputResolver. sourceFromSS(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, javax.xml.transform.stream.StreamSource ssrc)static WstxInputSourceDefaultInputResolver. sourceFromString(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.lang.String refContent)We have multiple ways to look at what would it mean to get a String as the resolved result.private static WstxInputSourceDefaultInputResolver. sourceFromURL(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.net.URL url, java.lang.String pubId)Methods in com.ctc.wstx.io with parameters of type WstxInputSource Modifier and Type Method Description static WstxInputSourceInputSourceFactory. constructCharArraySource(WstxInputSource parent, java.lang.String fromEntity, char[] text, int offset, int len, javax.xml.stream.Location loc, java.net.URL src)Factory method usually used to expand internal parsed entities; in which case context remains mostly the same.static ReaderSourceInputSourceFactory. constructEntitySource(ReaderConfig cfg, WstxInputSource parent, java.lang.String entityName, InputBootstrapper bs, java.lang.String pubId, SystemId sysId, int xmlVersion, java.io.Reader r)static WstxInputSourceDefaultInputResolver. resolveEntity(WstxInputSource parent, java.net.URL pathCtxt, java.lang.String entityName, java.lang.String publicId, java.lang.String systemId, javax.xml.stream.XMLResolver customResolver, ReaderConfig cfg, int xmlVersion)Basic external resource resolver implementation; usable both with DTD and entity resolution.static WstxInputSourceDefaultInputResolver. resolveEntityUsing(WstxInputSource refCtxt, java.lang.String entityName, java.lang.String publicId, java.lang.String systemId, javax.xml.stream.XMLResolver resolver, ReaderConfig cfg, int xmlVersion)A very simple utility expansion method used generally when the only way to resolve an entity is via passed resolver; and where failing to resolve it is not fatal.protected static WstxInputSourceDefaultInputResolver. sourceFrom(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.lang.Object o)Factory method that accepts various types of Objects, and tries to create aWstxInputSourcefrom it.private static WstxInputSourceDefaultInputResolver. sourceFromIS(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.io.InputStream is, java.lang.String pubId, java.lang.String sysId)private static WstxInputSourceDefaultInputResolver. sourceFromR(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.io.Reader r, java.lang.String pubId, java.lang.String sysId)private static WstxInputSourceDefaultInputResolver. sourceFromSS(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, javax.xml.transform.stream.StreamSource ssrc)static WstxInputSourceDefaultInputResolver. sourceFromString(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.lang.String refContent)We have multiple ways to look at what would it mean to get a String as the resolved result.private static WstxInputSourceDefaultInputResolver. sourceFromURL(WstxInputSource parent, ReaderConfig cfg, java.lang.String refName, int xmlVersion, java.net.URL url, java.lang.String pubId)Constructors in com.ctc.wstx.io with parameters of type WstxInputSource Constructor Description BaseInputSource(WstxInputSource parent, java.lang.String fromEntity, java.lang.String publicId, SystemId systemId)CharArraySource(WstxInputSource parent, java.lang.String fromEntity, char[] chars, int offset, int len, javax.xml.stream.Location loc, SystemId sysId)ReaderSource(ReaderConfig cfg, WstxInputSource parent, java.lang.String fromEntity, java.lang.String pubId, SystemId sysId, java.io.Reader r, boolean realClose)WstxInputSource(WstxInputSource parent, java.lang.String fromEntity) -
Uses of WstxInputSource in com.ctc.wstx.sr
Fields in com.ctc.wstx.sr declared as WstxInputSource Modifier and Type Field Description protected WstxInputSourceStreamScanner. mInputCurrently active input source; contains link to parent (nesting) input sources, if any.protected WstxInputSourceStreamScanner. mRootInputTop-most input source this reader can use; due to input source chaining, this is not necessarily the root of all input; for example, external DTD subset reader's root input still has original document input as its parent.Methods in com.ctc.wstx.sr that return WstxInputSource Modifier and Type Method Description WstxInputSourceStreamScanner. getCurrentInput()Returns current input source this source uses.Methods in com.ctc.wstx.sr with parameters of type WstxInputSource Modifier and Type Method Description protected voidBasicStreamReader. handleGreedyEntityProblem(WstxInputSource input)This problem gets reported if an entity tries to expand to a close tag matching start tag that did not came from the same entity (but from parent).protected voidBasicStreamReader. handleIncompleteEntityProblem(WstxInputSource closing)protected abstract voidStreamScanner. handleIncompleteEntityProblem(WstxInputSource closing)protected voidStreamScanner. initInputSource(WstxInputSource newInput, boolean isExt, java.lang.String entityId)Method called when an entity has been expanded (new input source has been created).protected voidStreamScanner. throwNullParent(WstxInputSource curr)Constructors in com.ctc.wstx.sr with parameters of type WstxInputSource Constructor Description StreamScanner(WstxInputSource input, ReaderConfig cfg, javax.xml.stream.XMLResolver res)Constructor used when creating a complete new (main-level) reader that does not share its input buffers or state with another reader.
-