| java.lang.Object com.jclark.xml.parse.OpenEntity
OpenEntity | public class OpenEntity (Code) | | Information about an open external entity.
This is used to by EntityManager to return
information about an external entity that is has opened.
See Also: EntityManager version: $Revision: 1.4 $ $Date: 1998/02/17 04:20:47 $ |
Constructor Summary | |
public | OpenEntity(InputStream inputStream, String location, URL base, String encoding) Creates and initializes an OpenEntity which uses
an externally specified encoding. | public | OpenEntity(InputStream inputStream, String location, URL base) Creates and initializes an OpenEntity which uses
the encoding specified in the entity. |
Method Summary | |
final public URL | getBase() Returns the URL to use as the base URL for resolving relative URLs
contained in the entity. | final public String | getEncoding() Returns the name of the encoding to be used to convert the entity's
bytes into characters, or null if this should be determined from
the entity itself using XML's rules. | final public InputStream | getInputStream() Returns an InputStream containing the entity's bytes. | final public String | getLocation() Returns a string representation of the location of the entity
suitable for use in error messages. |
OpenEntity | public OpenEntity(InputStream inputStream, String location, URL base, String encoding)(Code) | | Creates and initializes an OpenEntity which uses
an externally specified encoding.
|
OpenEntity | public OpenEntity(InputStream inputStream, String location, URL base)(Code) | | Creates and initializes an OpenEntity which uses
the encoding specified in the entity.
|
getBase | final public URL getBase()(Code) | | Returns the URL to use as the base URL for resolving relative URLs
contained in the entity.
|
getEncoding | final public String getEncoding()(Code) | | Returns the name of the encoding to be used to convert the entity's
bytes into characters, or null if this should be determined from
the entity itself using XML's rules.
|
getInputStream | final public InputStream getInputStream()(Code) | | Returns an InputStream containing the entity's bytes.
If this is called more than once on the same
OpenEntity, it will return the same InputStream.
|
getLocation | final public String getLocation()(Code) | | Returns a string representation of the location of the entity
suitable for use in error messages.
|
|
|