public class AppVersionXMLReadWrite extends AppVersionXMLConstants
ApplicationVersion
object.ATTR_APP_TYPE, ATTR_BUILD_NO, ATTR_MAJOR_APP_VERSION, ATTR_MINOR_APP_VERSION, ATTR_PATCH_LEVEL, TAG_APP_VERSION
Constructor and Description |
---|
AppVersionXMLReadWrite() |
Modifier and Type | Method and Description |
---|---|
static ApplicationVersion |
read(javax.xml.stream.events.StartElement element)
Reads an application version object from an XML stream.
|
static void |
write(javax.xml.stream.XMLStreamWriter writer,
ApplicationVersion version)
Writes an XML tag representing the specified application version.
|
public AppVersionXMLReadWrite()
public static void write(javax.xml.stream.XMLStreamWriter writer, ApplicationVersion version) throws javax.xml.stream.XMLStreamException
writer
- the writer that outputs the XML stream to write toversion
- the version to be writtenjavax.xml.stream.XMLStreamException
public static ApplicationVersion read(javax.xml.stream.events.StartElement element) throws javax.xml.stream.XMLStreamException
element
- the XML stream element containing the application versionjavax.xml.stream.XMLStreamException