|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.ptc.windchill.upgrade.dust.BlobReportContentHandler
BlobReportContentHandler gathers the characters for each Instance element, then attempts to de-serialize. Emits a message when it fails. extends DefaultHandler
Field Summary | |
(package private) String |
className
|
(package private) boolean |
endReport
|
(package private) boolean |
extraQueueDecode
|
(package private) AttributesImpl |
instanceAtts
|
(package private) boolean |
instanceElementStarted
|
(package private) String |
instanceId
|
(package private) StringBuffer |
objString
|
(package private) ContentHandlerWriter |
outHandler
|
(package private) boolean |
processingProperty
|
(package private) AttributesImpl |
propertyAtts
|
(package private) String |
propertyName
|
(package private) boolean |
quickReport
|
private static String |
RESOURCE
|
Constructor Summary | |
(package private) |
BlobReportContentHandler(File outfile)
Implements standard ContentHandler methods, writes to the file specified by the outfile parameter and marks property elements to be written as CDATA. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
doEndDocument()
Called at the end of the document rather than the usual endDocument(). |
void |
doStartDocument()
Called at the beginning of the document rather than the usual startDocument(). |
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String qName)
De-serialize the object if this is an Instance element. |
void |
endPrefixMapping(String prefix)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
private boolean |
isClassQueueEntry(String className)
|
private String |
makeObject(String str)
De-serialize the object. |
private void |
makeString(char[] ch,
int start,
int length)
Collect the value being read for the Property. |
void |
processingInstruction(String target,
String data)
|
void |
setQuickReport(boolean value)
|
private void |
showStackTrace(Throwable e)
This gets called when there is a de-serialization problem. |
void |
skippedEntity(String name)
|
void |
startDocument()
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Traps the instance id, property name, and class name being processed. |
private void |
startInstanceIfNeeded()
|
void |
startPrefixMapping(String prefix,
String uri)
|
private void |
writeEmptyElement(String uri_,
String status_)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
error, fatalError, notationDecl, resolveEntity, setDocumentLocator, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
ContentHandlerWriter outHandler
boolean processingProperty
boolean instanceElementStarted
boolean extraQueueDecode
boolean quickReport
boolean endReport
String propertyName
String instanceId
String className
StringBuffer objString
AttributesImpl propertyAtts
AttributesImpl instanceAtts
Constructor Detail |
BlobReportContentHandler(File outfile)
Method Detail |
public void startPrefixMapping(String prefix, String uri) throws SAXException
SAXException
public void endPrefixMapping(String prefix) throws SAXException
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
SAXException
public void processingInstruction(String target, String data) throws SAXException
SAXException
public void skippedEntity(String name) throws SAXException
SAXException
public void startDocument() throws SAXException
SAXException
public void doStartDocument() throws SAXException
SAXException
public void endDocument() throws SAXException
SAXException
public void doEndDocument() throws SAXException
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
SAXException
private void showStackTrace(Throwable e) throws SAXException
SAXException
private void writeEmptyElement(String uri_, String status_) throws SAXException
SAXException
private void startInstanceIfNeeded() throws SAXException
SAXException
private String makeObject(String str) throws IOException, ClassNotFoundException, Throwable
ClassNotFoundException
IOException
Throwable
private void makeString(char[] ch, int start, int length)
private boolean isClassQueueEntry(String className) throws RuntimeException
RuntimeException
public void setQuickReport(boolean value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |