public class XMLInputSource extends Object
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.
|
protected String |
fPublicId
Public identifier.
|
protected String |
fSystemId
System identifier.
|
Constructor and Description |
---|
XMLInputSource(String publicId,
String systemId,
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(String publicId,
String systemId,
String baseSystemId,
InputStream byteStream,
String encoding)
Constructs an input source from a byte stream.
|
XMLInputSource(String publicId,
String systemId,
String baseSystemId,
Reader charStream,
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 |
---|---|
String |
getBaseSystemId()
Returns the base system identifier.
|
InputStream |
getByteStream()
Returns the byte stream.
|
Reader |
getCharacterStream()
Returns the character stream.
|
String |
getEncoding()
Returns the encoding of the stream, or null if not known.
|
String |
getPublicId()
Returns the public identifier.
|
String |
getSystemId()
Returns the system identifier.
|
void |
setBaseSystemId(String baseSystemId)
Sets the base system identifier.
|
void |
setByteStream(InputStream byteStream)
Sets the byte stream.
|
void |
setCharacterStream(Reader charStream)
Sets the character stream.
|
void |
setEncoding(String encoding)
Sets the encoding of the stream.
|
void |
setPublicId(String publicId)
Sets the public identifier.
|
void |
setSystemId(String systemId)
Sets the system identifier.
|
protected String fPublicId
protected String fSystemId
protected String fBaseSystemId
protected InputStream fByteStream
protected Reader fCharStream
protected String fEncoding
public XMLInputSource(String publicId, String systemId, 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(String publicId, String systemId, String baseSystemId, InputStream byteStream, 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(String publicId, String systemId, String baseSystemId, Reader charStream, 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(String publicId)
publicId
- The new public identifier.public String getPublicId()
public void setSystemId(String systemId)
systemId
- The new system identifier.public String getSystemId()
public void setBaseSystemId(String baseSystemId)
baseSystemId
- The new base system identifier.public String getBaseSystemId()
public void setByteStream(InputStream byteStream)
byteStream
- The new byte stream.public InputStream getByteStream()
public void setCharacterStream(Reader charStream)
charStream
- The new character stream.setEncoding(java.lang.String)
public Reader getCharacterStream()
public void setEncoding(String encoding)
encoding
- The new encoding.public String getEncoding()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.