javax.xml.transform.Source
public class AugmentedSource
extends java.lang.Object
implements javax.xml.transform.Source
Modifier and Type | Method | Description |
---|---|---|
void |
addFilter(ProxyReceiver filter) |
Add a filter to the list of filters to be applied to the raw input
|
void |
close() |
Close any resources held by this Source.
|
javax.xml.transform.Source |
getContainedSource() |
Get the Source object wrapped by this AugmentedSource
|
int |
getDTDValidation() |
Get whether or not DTD validation of this source is required
|
java.util.List |
getFilters() |
Get the list of filters to be applied to the input.
|
int |
getSchemaValidation() |
Get whether or not schema validation of this source is required
|
int |
getStripSpace() |
Get the space-stripping action to be applied to the source document
|
java.lang.String |
getSystemId() |
Get the System ID.
|
java.lang.Boolean |
getWrapDocument() |
Assuming that the contained Source is a node in a tree, determine whether a tree will be created
as a view of this supplied tree, or as a copy.
|
org.xml.sax.XMLReader |
getXMLReader() |
|
boolean |
isLineNumbering() |
Get whether line numbers are to be maintained in the constructed document
|
boolean |
isPleaseCloseAfterUse() |
Determine whether or not the user of this Source is encouraged to close it as soon as reading is
finished.
|
static AugmentedSource |
makeAugmentedSource(javax.xml.transform.Source source) |
Create an AugmentedSource that wraps a given Source object.
|
void |
setDTDValidationMode(int option) |
Set whether or not DTD validation of this source is required
|
void |
setLineNumbering(boolean lineNumbering) |
Set whether line numbers are to be maintained in the constructed document
|
void |
setPleaseCloseAfterUse(boolean close) |
Set whether or not the user of this Source is encouraged to close it as soon as reading is finished.
|
void |
setSchemaValidationMode(int option) |
Set whether or not schema validation of this source is required
|
void |
setStripSpace(int stripAction) |
Set the space-stripping action to be applied to the source document
|
void |
setSystemId(java.lang.String id) |
Set the System ID.
|
void |
setWrapDocument(java.lang.Boolean wrap) |
Assuming that the contained Source is a node in a tree, indicate whether a tree should be created
as a view of this supplied tree, or as a copy.
|
void |
setXMLReader(org.xml.sax.XMLReader parser) |
Set the SAX parser (XMLReader) to be used
|
public static AugmentedSource makeAugmentedSource(javax.xml.transform.Source source)
source
- the Source object to be wrappedpublic void addFilter(ProxyReceiver filter)
public java.util.List getFilters()
public javax.xml.transform.Source getContainedSource()
public void setStripSpace(int stripAction)
stripAction
- one of Whitespace.IGNORABLE
,
Whitespace.ALL
, or Whitespace.NONE
public int getStripSpace()
Whitespace.IGNORABLE
,
Whitespace.ALL
, or Whitespace.NONE
public void setSchemaValidationMode(int option)
option
- one of Validation.STRICT
,
Validation.LAX
, Validation.STRIP
,
Validation.PRESERVE
, Validation.DEFAULT
public int getSchemaValidation()
Validation.DEFAULT
to use the default validation mode from the Configuration.public void setDTDValidationMode(int option)
option
- one of Validation.STRICT
,
Validation.STRIP
, Validation.DEFAULT
public int getDTDValidation()
Validation.DEFAULT
to use the default validation mode from the Configuration.public void setLineNumbering(boolean lineNumbering)
lineNumbering
- public boolean isLineNumbering()
public void setXMLReader(org.xml.sax.XMLReader parser)
parser
- public org.xml.sax.XMLReader getXMLReader()
public void setWrapDocument(java.lang.Boolean wrap)
wrap
- if true, the node in the supplied Source is wrapped, to create a view. If false, the node
and its contained subtree is copied. If null, the system default is chosen.public java.lang.Boolean getWrapDocument()
public void setSystemId(java.lang.String id)
setSystemId
in interface javax.xml.transform.Source
id
- the System ID.public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Source
public void setPleaseCloseAfterUse(boolean close)
public boolean isPleaseCloseAfterUse()
public void close()