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.
|
Modifier and Type | Method and Description |
---|---|
static DTDSubset |
FullDTDReader.flattenExternalSubset(WstxInputSource src,
Writer flattenWriter,
boolean inclComments,
boolean inclConditionals,
boolean inclPEs)
Method that will parse, process and output contents of an external
DTD subset.
|
protected void |
FullDTDReader.handleGreedyEntityProblem(WstxInputSource input) |
protected void |
MinimalDTDReader.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 void |
FullDTDReader.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 void |
FullDTDReader.initInputSource(WstxInputSource newInput,
boolean isExt,
String entityId) |
static DTDSubset |
FullDTDReader.readExternalSubset(WstxInputSource src,
ReaderConfig cfg,
DTDSubset intSubset,
boolean constructFully,
int xmlVersion)
Method called to read in the external subset definition.
|
static DTDSubset |
FullDTDReader.readInternalSubset(WstxInputData srcData,
WstxInputSource input,
ReaderConfig cfg,
boolean constructFully,
int xmlVersion)
Method called to read in the internal subset definition.
|
static void |
MinimalDTDReader.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.
|
Constructor and Description |
---|
MinimalDTDReader(WstxInputSource input,
ReaderConfig cfg,
boolean isExt)
Common initialization part of int/ext subset constructors.
|
Modifier and Type | Method and Description |
---|---|
WstxInputSource |
UnparsedExtEntity.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
WstxInputSource |
ParsedExtEntity.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
WstxInputSource |
IntEntity.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
abstract WstxInputSource |
ExtEntity.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
abstract WstxInputSource |
EntityDecl.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion)
Method called to create the new input source through which expansion
value of the entity can be read.
|
Modifier and Type | Method and Description |
---|---|
WstxInputSource |
UnparsedExtEntity.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
WstxInputSource |
ParsedExtEntity.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
WstxInputSource |
IntEntity.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
abstract WstxInputSource |
ExtEntity.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion) |
abstract WstxInputSource |
EntityDecl.expand(WstxInputSource parent,
XMLResolver res,
ReaderConfig cfg,
int xmlVersion)
Method called to create the new input source through which expansion
value of the entity can be read.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseInputSource
Abstract base class that implements shared functionality that all current
WstxInputSource implementations Woodstox includes need. |
class |
BranchingReaderSource
Specialized input source that can "branch" input it reads; essentially
both giving out read data AND also writing it out to a Writer.
|
class |
CharArraySource
Input source that reads input from a static char array, usually used
when expanding internal entities.
|
class |
ReaderSource
Input source that reads input via a Reader.
|
Modifier and Type | Field and Description |
---|---|
protected WstxInputSource |
WstxInputSource.mParent
Parent in input source stack
|
Modifier and Type | Method and Description |
---|---|
static WstxInputSource |
InputSourceFactory.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.
|
WstxInputSource |
WstxInputSource.getParent() |
static WstxInputSource |
DefaultInputResolver.resolveEntity(WstxInputSource parent,
URL pathCtxt,
String entityName,
String publicId,
String systemId,
XMLResolver customResolver,
ReaderConfig cfg,
int xmlVersion)
Basic external resource resolver implementation; usable both with
DTD and entity resolution.
|
static WstxInputSource |
DefaultInputResolver.resolveEntityUsing(WstxInputSource refCtxt,
String entityName,
String publicId,
String systemId,
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 WstxInputSource |
DefaultInputResolver.sourceFrom(WstxInputSource parent,
ReaderConfig cfg,
String refName,
int xmlVersion,
Object o)
Factory method that accepts various types of Objects, and tries to
create a
WstxInputSource from it. |
static WstxInputSource |
DefaultInputResolver.sourceFromString(WstxInputSource parent,
ReaderConfig cfg,
String refName,
int xmlVersion,
String refContent)
We have multiple ways to look at what would it mean to get a String
as the resolved result.
|
Modifier and Type | Method and Description |
---|---|
static WstxInputSource |
InputSourceFactory.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 ReaderSource |
InputSourceFactory.constructEntitySource(ReaderConfig cfg,
WstxInputSource parent,
String entityName,
InputBootstrapper bs,
String pubId,
SystemId sysId,
int xmlVersion,
Reader r) |
static WstxInputSource |
DefaultInputResolver.resolveEntity(WstxInputSource parent,
URL pathCtxt,
String entityName,
String publicId,
String systemId,
XMLResolver customResolver,
ReaderConfig cfg,
int xmlVersion)
Basic external resource resolver implementation; usable both with
DTD and entity resolution.
|
static WstxInputSource |
DefaultInputResolver.resolveEntityUsing(WstxInputSource refCtxt,
String entityName,
String publicId,
String systemId,
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 WstxInputSource |
DefaultInputResolver.sourceFrom(WstxInputSource parent,
ReaderConfig cfg,
String refName,
int xmlVersion,
Object o)
Factory method that accepts various types of Objects, and tries to
create a
WstxInputSource from it. |
static WstxInputSource |
DefaultInputResolver.sourceFromString(WstxInputSource parent,
ReaderConfig cfg,
String refName,
int xmlVersion,
String refContent)
We have multiple ways to look at what would it mean to get a String
as the resolved result.
|
Constructor and Description |
---|
BaseInputSource(WstxInputSource parent,
String fromEntity,
String publicId,
SystemId systemId) |
CharArraySource(WstxInputSource parent,
String fromEntity,
char[] chars,
int offset,
int len,
Location loc,
SystemId sysId) |
ReaderSource(ReaderConfig cfg,
WstxInputSource parent,
String fromEntity,
String pubId,
SystemId sysId,
Reader r,
boolean realClose) |
WstxInputSource(WstxInputSource parent,
String fromEntity) |
Modifier and Type | Field and Description |
---|---|
protected WstxInputSource |
StreamScanner.mInput
Currently active input source; contains link to parent (nesting) input
sources, if any.
|
protected WstxInputSource |
StreamScanner.mRootInput
Top-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.
|
Modifier and Type | Method and Description |
---|---|
WstxInputSource |
StreamScanner.getCurrentInput()
Returns current input source this source uses.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BasicStreamReader.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 abstract void |
StreamScanner.handleIncompleteEntityProblem(WstxInputSource closing) |
protected void |
BasicStreamReader.handleIncompleteEntityProblem(WstxInputSource closing) |
protected void |
StreamScanner.initInputSource(WstxInputSource newInput,
boolean isExt,
String entityId)
Method called when an entity has been expanded (new input source
has been created).
|
protected void |
StreamScanner.throwNullParent(WstxInputSource curr) |
Constructor and Description |
---|
StreamScanner(WstxInputSource input,
ReaderConfig cfg,
XMLResolver res)
Constructor used when creating a complete new (main-level) reader that
does not share its input buffers or state with another reader.
|
Copyright © 2018 FasterXML. All rights reserved.