|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.qos.StatusQosQuickParseFactory
public class StatusQosQuickParseFactory
Parsing xml QoS (quality of service) of return status.
Here we parse it with normal string operations for better performance. This is 40 times faster than a SAX parse (6 microsec instead of 241 microsec on a 600 MHz AMD Linux).
For the xml representation see StatusQosSaxFactory.
StatusQosData
,
StatusQosSaxFactory
,
StatusQosFactoryTest
Field Summary | |
---|---|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private StatusQosData |
statusQosData
|
Constructor Summary | |
---|---|
StatusQosQuickParseFactory(Global glob)
Can be used as singleton. |
Method Summary | |
---|---|
java.lang.String |
getName()
A human readable name of this factory |
private java.lang.String |
parseOurself(java.lang.String str,
java.lang.String token)
Parse xml ourself, to gain performance |
StatusQosData |
readObject(java.lang.String xmlQos)
Parses the given xml Qos and returns a StatusQosData holding the data. |
java.lang.String |
writeObject(StatusQosData statusQosData,
java.lang.String extraOffset,
java.util.Properties props)
Dump state of this object into a XML ASCII string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.logging.Logger log
private final Global glob
private StatusQosData statusQosData
Constructor Detail |
---|
public StatusQosQuickParseFactory(Global glob)
Method Detail |
---|
public StatusQosData readObject(java.lang.String xmlQos) throws XmlBlasterException
readObject
in interface I_StatusQosFactory
the
- XML based ASCII string
XmlBlasterException
private final java.lang.String parseOurself(java.lang.String str, java.lang.String token)
public final java.lang.String writeObject(StatusQosData statusQosData, java.lang.String extraOffset, java.util.Properties props)
writeObject
in interface I_StatusQosFactory
extraOffset
- indenting of tags for nice outputprops
- Formatting hints (see Constants.TOXML_*)
public java.lang.String getName()
getName
in interface I_StatusQosFactory
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |