|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.xni.parser.XMLInputSource
public class XMLInputSource
This class represents an input source for an XML document. The basic properties of an input source are the following:
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |