java.lang.Object | |
↳ | org.apache.xerces.xni.parser.XMLInputSource |
Known Direct Subclasses |
This class represents an input source for an XML document. The basic properties of an input source are the following:
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fBaseSystemId | Base system identifier. | ||||||||||
fByteStream | Byte stream. | ||||||||||
fCharStream | Character stream. | ||||||||||
fEncoding | Encoding. | ||||||||||
fPublicId | Public identifier. | ||||||||||
fSystemId | System identifier. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an input source from just the public and system
identifiers, leaving resolution of the entity and opening of
the input stream up to the caller.
| |||||||||||
Constructs an input source from a XMLResourceIdentifier
object, leaving resolution of the entity and opening of
the input stream up to the caller.
| |||||||||||
Constructs an input source from a byte stream.
| |||||||||||
Constructs an input source from a character stream.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the base system identifier.
| |||||||||||
Returns the byte stream.
| |||||||||||
Returns the character stream.
| |||||||||||
Returns the encoding of the stream, or null if not known.
| |||||||||||
Returns the public identifier.
| |||||||||||
Returns the system identifier.
| |||||||||||
Sets the base system identifier.
| |||||||||||
Sets the byte stream.
| |||||||||||
Sets the character stream.
| |||||||||||
Sets the encoding of the stream.
| |||||||||||
Sets the public identifier.
| |||||||||||
Sets the system identifier.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructs an input source from just the public and system identifiers, leaving resolution of the entity and opening of the input stream up to the caller.
publicId | The public identifier, if known. |
---|---|
systemId | The system identifier. This value should always be set, if possible, and can be relative or absolute. If the system identifier is relative, then the base system identifier should be set. |
baseSystemId | The base system identifier. This value should always be set to the fully expanded URI of the base system identifier, if possible. |
Constructs an input source from a XMLResourceIdentifier object, leaving resolution of the entity and opening of the input stream up to the caller.
resourceIdentifier | the XMLResourceIdentifier containing the information |
---|
Constructs an input source from a byte stream.
publicId | The public identifier, if known. |
---|---|
systemId | The system identifier. This value should always be set, if possible, and can be relative or absolute. If the system identifier is relative, then the base system identifier should be set. |
baseSystemId | The base system identifier. This value should always be set to the fully expanded URI of the base system identifier, if possible. |
byteStream | The byte stream. |
encoding | The encoding of the byte stream, if known. |
Constructs an input source from a character stream.
publicId | The public identifier, if known. |
---|---|
systemId | The system identifier. This value should always be set, if possible, and can be relative or absolute. If the system identifier is relative, then the base system identifier should be set. |
baseSystemId | The base system identifier. This value should always be set to the fully expanded URI of the base system identifier, if possible. |
charStream | The character stream. |
encoding | The original encoding of the byte stream used by the reader, if known. |
Sets the base system identifier.
baseSystemId | The new base system identifier. |
---|
Sets the byte stream. If the byte stream is not already opened when this object is instantiated, then the code that opens the stream should also set the byte stream on this object. Also, if the encoding is auto-detected, then the encoding should also be set on this object.
byteStream | The new byte stream. |
---|
Sets the character stream. If the character stream is not already opened when this object is instantiated, then the code that opens the stream should also set the character stream on this object. Also, the encoding of the byte stream used by the reader should also be set on this object, if known.
charStream | The new character stream. |
---|
Sets the encoding of the stream.
encoding | The new encoding. |
---|
Sets the public identifier.
publicId | The new public identifier. |
---|
Sets the system identifier.
systemId | The new system identifier. |
---|