public class XMLInputSource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fBaseSystemId
Base system identifier.
|
protected java.io.InputStream |
fByteStream
Byte stream.
|
protected java.io.Reader |
fCharStream
Character stream.
|
protected java.lang.String |
fEncoding
Encoding.
|
protected java.lang.String |
fPublicId
Public identifier.
|
protected java.lang.String |
fSystemId
System identifier.
|
Constructor and Description |
---|
XMLInputSource(java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseSystemId)
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.
|
XMLInputSource(java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseSystemId,
java.io.InputStream byteStream,
java.lang.String encoding)
Constructs an input source from a byte stream.
|
XMLInputSource(java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseSystemId,
java.io.Reader charStream,
java.lang.String encoding)
Constructs an input source from a character stream.
|
XMLInputSource(XMLResourceIdentifier resourceIdentifier)
Constructs an input source from a XMLResourceIdentifier
object, leaving resolution of the entity and opening of
the input stream up to the caller.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseSystemId()
Returns the base system identifier.
|
java.io.InputStream |
getByteStream()
Returns the byte stream.
|
java.io.Reader |
getCharacterStream()
Returns the character stream.
|
java.lang.String |
getEncoding()
Returns the encoding of the stream, or null if not known.
|
java.lang.String |
getPublicId()
Returns the public identifier.
|
java.lang.String |
getSystemId()
Returns the system identifier.
|
void |
setBaseSystemId(java.lang.String baseSystemId)
Sets the base system identifier.
|
void |
setByteStream(java.io.InputStream byteStream)
Sets the byte stream.
|
void |
setCharacterStream(java.io.Reader charStream)
Sets the character stream.
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding of the stream.
|
void |
setPublicId(java.lang.String publicId)
Sets the public identifier.
|
void |
setSystemId(java.lang.String systemId)
Sets the system identifier.
|
protected java.lang.String fPublicId
protected java.lang.String fSystemId
protected java.lang.String fBaseSystemId
protected java.io.InputStream fByteStream
protected java.io.Reader fCharStream
protected java.lang.String fEncoding
public XMLInputSource(java.lang.String publicId, java.lang.String systemId, java.lang.String baseSystemId)
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.public XMLInputSource(XMLResourceIdentifier resourceIdentifier)
resourceIdentifier
- the XMLResourceIdentifier containing the informationpublic XMLInputSource(java.lang.String publicId, java.lang.String systemId, java.lang.String baseSystemId, java.io.InputStream byteStream, java.lang.String encoding)
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.public XMLInputSource(java.lang.String publicId, java.lang.String systemId, java.lang.String baseSystemId, java.io.Reader charStream, java.lang.String encoding)
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.public void setPublicId(java.lang.String publicId)
publicId
- The new public identifier.public java.lang.String getPublicId()
public void setSystemId(java.lang.String systemId)
systemId
- The new system identifier.public java.lang.String getSystemId()
public void setBaseSystemId(java.lang.String baseSystemId)
baseSystemId
- The new base system identifier.public java.lang.String getBaseSystemId()
public void setByteStream(java.io.InputStream byteStream)
byteStream
- The new byte stream.public java.io.InputStream getByteStream()
public void setCharacterStream(java.io.Reader charStream)
charStream
- The new character stream.setEncoding(java.lang.String)
public java.io.Reader getCharacterStream()
public void setEncoding(java.lang.String encoding)
encoding
- The new encoding.public java.lang.String getEncoding()
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.