public final class InputSourceFactory extends Object
WstxInputSource
to allow
reading input from various sources.Constructor and Description |
---|
InputSourceFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
static ReaderSource |
constructEntitySource(ReaderConfig cfg,
WstxInputSource parent,
String entityName,
InputBootstrapper bs,
String pubId,
SystemId sysId,
int xmlVersion,
Reader r) |
public static ReaderSource constructEntitySource(ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs, String pubId, SystemId sysId, int xmlVersion, Reader r)
parent
- entityName
- Name of the entity expanded to create this input
source: null when source created for the (main level) external
DTD subset entity.xmlVersion
- 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.public static BranchingReaderSource constructDocumentSource(ReaderConfig cfg, InputBootstrapper bs, String pubId, SystemId sysId, Reader r, boolean realClose)
public static WstxInputSource constructCharArraySource(WstxInputSource parent, String fromEntity, char[] text, int offset, int len, Location loc, URL src)
Copyright © 2018 FasterXML. All rights reserved.