Modifier and Type | Field and Description |
---|---|
protected String | fBaseSystemId
Base system identifier. |
protected InputStream | fByteStream
Byte stream. |
protected Reader | fCharStream
Character stream. |
protected String | fEncoding
Encoding. |
pack-priv boolean | |
protected String | fPublicId
Public identifier. |
protected String | fSystemId
System identifier. |
Access | Constructor and Description |
---|---|
public | XMLInputSource(String
The public identifier, if known. publicId, String 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. systemId, String The base system identifier. This value should
always be set to the fully expanded URI of the
base system identifier, if possible. baseSystemId, boolean a flag to indicate whether the source is
created by a resolver isCreatedByResolver)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. |
public | XMLInputSource(XMLResourceIdentifier
the XMLResourceIdentifier containing the information resourceIdentifier)Constructs an input source from a XMLResourceIdentifier object, leaving resolution of the entity and opening of the input stream up to the caller. |
public | XMLInputSource(InputSource
a SAX InputSource inputSource, boolean a flag to indicate whether the source is
created by a resolver isCreatedByResolver)Constructs an input source from a SAX InputSource object. |
public | XMLInputSource(String
The public identifier, if known. publicId, String 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. systemId, String The base system identifier. This value should
always be set to the fully expanded URI of the
base system identifier, if possible. baseSystemId, InputStream The byte stream. byteStream, String The encoding of the byte stream, if known. encoding)Constructs an input source from a byte stream. |
public | XMLInputSource(String
The public identifier, if known. publicId, String 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. systemId, String The base system identifier. This value should
always be set to the fully expanded URI of the
base system identifier, if possible. baseSystemId, Reader The character stream. charStream, String The original encoding of the byte stream
used by the reader, if known. encoding)Constructs an input source from a character stream. |
Modifier and Type | Method and Description |
---|---|
public String | |
public InputStream | |
public Reader | |
public String | |
public String | |
public String | |
public boolean | Returns: true if the source is created by a resolver, false otherwiseReturns a boolean to indicate whether this source is created by a resolver. |
public void | |
public void | |
public void | |
public void | setCreatedByResolver(boolean
the flag createdByResolver)Sets the flag to indicate whether this source is created by a resolver |
public void | |
public void | |
public void |
fBaseSystemId | back to summary |
---|---|
protected String fBaseSystemId Base system identifier. |
fByteStream | back to summary |
---|---|
protected InputStream fByteStream Byte stream. |
fCharStream | back to summary |
---|---|
protected Reader fCharStream Character stream. |
fEncoding | back to summary |
---|---|
protected String fEncoding Encoding. |
fIsCreatedByResolver | back to summary |
---|---|
pack-priv boolean fIsCreatedByResolver |
fPublicId | back to summary |
---|---|
protected String fPublicId Public identifier. |
fSystemId | back to summary |
---|---|
protected String fSystemId System identifier. |
XMLInputSource | back to summary |
---|---|
public XMLInputSource(String publicId, String systemId, String baseSystemId, boolean isCreatedByResolver) 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 | back to summary |
---|---|
public 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.
|
XMLInputSource | back to summary |
---|---|
public XMLInputSource(InputSource inputSource, boolean isCreatedByResolver) Constructs an input source from a SAX InputSource object.
|
XMLInputSource | back to summary |
---|---|
public XMLInputSource(String publicId, String systemId, String baseSystemId, InputStream byteStream, String encoding) Constructs an input source from a byte stream.
|
XMLInputSource | back to summary |
---|---|
public XMLInputSource(String publicId, String systemId, String baseSystemId, Reader charStream, String encoding) Constructs an input source from a character stream.
|
getBaseSystemId | back to summary |
---|---|
public String getBaseSystemId() Returns the base system identifier. |
getByteStream | back to summary |
---|---|
public InputStream getByteStream() Returns the byte stream. |
getCharacterStream | back to summary |
---|---|
public Reader getCharacterStream() Returns the character stream. |
getEncoding | back to summary |
---|---|
public String getEncoding() Returns the encoding of the stream, or null if not known. |
getPublicId | back to summary |
---|---|
public String getPublicId() Returns the public identifier. |
getSystemId | back to summary |
---|---|
public String getSystemId() Returns the system identifier. |
isCreatedByResolver | back to summary |
---|---|
public boolean isCreatedByResolver() Returns a boolean to indicate whether this source is created by a resolver.
|
setBaseSystemId | back to summary |
---|---|
public void setBaseSystemId(String baseSystemId) Sets the base system identifier.
|
setByteStream | back to summary |
---|---|
public void setByteStream(InputStream byteStream) 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.
|
setCharacterStream | back to summary |
---|---|
public void setCharacterStream(Reader charStream) 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.
|
setCreatedByResolver | back to summary |
---|---|
public void setCreatedByResolver(boolean createdByResolver) Sets the flag to indicate whether this source is created by a resolver
|
setEncoding | back to summary |
---|---|
public void setEncoding(String encoding) Sets the encoding of the stream.
|
setPublicId | back to summary |
---|---|
public void setPublicId(String publicId) Sets the public identifier.
|
setSystemId | back to summary |
---|---|
public void setSystemId(String systemId) Sets the system identifier.
|