Top Description Constructors Methods
com.ctc.wstx.io

public final Class InputSourceFactory

extends Object
Class Inheritance
Imports
java.io.Reader, java.net.URL, javax.xml.stream.Location, com.ctc.wstx.api.ReaderConfig

Factory class that creates instances of WstxInputSource to allow reading input from various sources.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static WstxInputSource
constructCharArraySource(WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src)

Factory method usually used to expand internal parsed entities; in which case context remains mostly the same.

public static BranchingReaderSource
constructDocumentSource(ReaderConfig cfg, InputBootstrapper bs, String pubId, SystemId sysId, Reader r, boolean realClose)

Factory method used for creating the main-level document reader source.

public static ReaderSource
constructEntitySource(ReaderConfig cfg, WstxInputSource parent, String
Name of the entity expanded to create this input source: null when source created for the (main level) external DTD subset entity.
entityName
,
InputBootstrapper bs, String pubId, SystemId sysId, int
Optional xml version identifier of the main parsed document. Currently only relevant for checking that XML 1.0 document does not include XML 1.1 external parsed entities. If unknown, no checks will be done.
xmlVersion
,
Reader r)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InputSourceFactoryback to summary
public InputSourceFactory()

Method Detail

constructCharArraySourceback to summary
public static WstxInputSource constructCharArraySource(WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src)

Factory method usually used to expand internal parsed entities; in which case context remains mostly the same.

constructDocumentSourceback to summary
public static BranchingReaderSource constructDocumentSource(ReaderConfig cfg, InputBootstrapper bs, String pubId, SystemId sysId, Reader r, boolean realClose)

Factory method used for creating the main-level document reader source.

constructEntitySourceback to summary
public static ReaderSource constructEntitySource(ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, SystemId sysId, int xmlVersion, Reader r)
Parameters
entityName:String

Name of the entity expanded to create this input source: null when source created for the (main level) external DTD subset entity.

xmlVersion:int

Optional xml version identifier of the main parsed document. Currently only relevant for checking that XML 1.0 document does not include XML 1.1 external parsed entities. If unknown, no checks will be done.