public abstract class XMLInfo extends XMLElem implements InfoReader
XMLInfo
will parse and store information
stored in a XML string.Constructor and Description |
---|
XMLInfo(java.lang.String devId,
java.lang.String name)
Construct a XML Information reader object.
|
Modifier and Type | Method and Description |
---|---|
Device |
getDevice()
Get
oracle.lite.resource.Device object whence the
information originated. |
java.lang.String |
getDeviceId()
Get the id of the Oracle Lite client device whence the information
originated
|
java.lang.String |
getParserError()
Retrieve the XML parser error if any.
|
java.sql.Timestamp |
getTime()
Retrieve information creation or retrieval time as
java.sql.Timestamp . |
void |
parse(java.io.InputStream in,
java.sql.Timestamp time)
Parse data from the InputStream and create nodes.
|
getAttribute, getChildElement, getChildren, getChildText, getTagName, getText, getXMLText, load
public XMLInfo(java.lang.String devId, java.lang.String name)
devId
- Device Idname
- Name of the top element.public Device getDevice()
oracle.lite.resource.Device
object whence the
information originated. If the device cannot be determined, the
return value will be null
public java.lang.String getDeviceId()
public java.lang.String getParserError()
public java.sql.Timestamp getTime()
java.sql.Timestamp
.getTime
in interface InfoReader
public void parse(java.io.InputStream in, java.sql.Timestamp time) throws ResourceException
parse
in interface InfoReader
in
- InputStream containing data to be parsed.time
- Information retrieval time.oracle.lite.resource.ResourceException
ResourceException