Package com.thaiopensource.xml.em
Class OpenEntity
- java.lang.Object
-
- com.thaiopensource.xml.em.OpenEntity
-
public class OpenEntity extends java.lang.ObjectInformation about an open external entity. This is used to byEntityManagerto return information about an external entity that is has opened.- See Also:
EntityManager
-
-
Constructor Summary
Constructors Constructor Description OpenEntity(java.io.Reader reader, java.lang.String location, java.lang.String baseUri, java.lang.String encoding)Creates and initializes anOpenEntity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseUri()Returns the URI to use as the base URI for resolving relative URIs contained in the entity.java.lang.StringgetEncoding()Returns the encoding used by the entity or null if the encoding that was used is unknown.java.lang.StringgetLocation()Returns a string representation of the location of the entity suitable for use in error messages.java.io.ReadergetReader()Returns an Reader containing the entity's bytes.
-
-
-
Method Detail
-
getReader
public final java.io.Reader getReader()
Returns an Reader containing the entity's bytes. If this is called more than once on the same OpenEntity, it will return the same Reader.
-
getBaseUri
public final java.lang.String getBaseUri()
Returns the URI to use as the base URI for resolving relative URIs contained in the entity.
-
getLocation
public final java.lang.String getLocation()
Returns a string representation of the location of the entity suitable for use in error messages.
-
getEncoding
public final java.lang.String getEncoding()
Returns the encoding used by the entity or null if the encoding that was used is unknown.
-
-