public class WASVersion
extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
java.lang.String |
content |
Constructor and Description |
---|
WASVersion() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] text,
int start,
int length)
Append characters between the tag elements to the StringBuffer.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
done of parsing
|
static java.lang.String |
getVersion()
method uses SAXParser to parse websphere file to get the version
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
SAXParser callback method
|
public static java.lang.String getVersion() throws java.lang.Exception
java.lang.Exception
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] text, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException