public class XMLInputSource extends Object
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseSystemId() |
InputStream |
getByteStream() |
Reader |
getCharacterStream() |
String |
getEncoding() |
String |
getPublicId() |
String |
getSystemId() |
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.
|
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(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(String)public Reader getCharacterStream()
public void setEncoding(String encoding)
encoding - The new encoding.public String getEncoding()
Copyright © 2024 HtmlUnit. All rights reserved.