|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.dust.ReadBlobData
Reads data files created by a previous ExportBlobData session, de-serializing each blob instance. If there are incompatibilities, an exception will be thrown and the stack trace will be included in the report.
Field Summary | |
private static String |
CLASS_NAME
|
private static boolean |
DEVELOPER_MODE
|
private PrintWriter |
log_
|
private String |
logLocation_
|
private ReadBlobCheckOpts |
opts
|
private static boolean |
QUICK_REPORT_MODE
|
private static String |
RESOURCE
|
private static String |
STDERR
|
private TimerStats |
timerStats
|
private long |
totalInstanceCount_
|
private Version |
version_
|
Constructor Summary | |
ReadBlobData()
|
Method Summary | |
void |
execute(String[] args)
Parse command line options and start it up. |
protected void |
finalize()
|
private PrintWriter |
getLog()
|
private String |
getPackageAsPath()
Supports getStyleSheetInputStream by turning this class's package into a path that is terminated with a forward slash. |
private InputStream |
getStyleSheetInputStream(String xsl_file)
Supports xslTransform by loading the stylesheet from the directory that this class is in. |
private void |
logMessage(String msg)
|
protected void |
logSetup()
|
static void |
main(String[] args)
|
private void |
read(File file,
DefaultHandler contentHandler)
Parse the given XML file, using BlobReportContentHandler which de-serializes the blobs. |
private String |
readBlobDataFor_(String dir_name,
String out_file_name)
Read the .data files from directory dir_name, creating a report named out_file_name. |
void |
readDataForClasses(String dir_,
String file_name)
Set up logging and timer stats, then read the data from XML and XSLT documents to create an HTML report. |
private void |
report(String message)
|
private void |
report(String message_key,
Object[] args)
|
private boolean |
sendFeedback(String msg)
Sends a message back to the client. |
private String |
showStackTrace(Throwable e)
This gets called when there is a de-serialization problem. |
private void |
transformToHTML(String xml_name,
String dir_,
String xsl_file)
Supports readDataForClasses by converting the XML and XSLT to HTML. |
private void |
warning(String localized_message)
|
private void |
warning(String message_key,
Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static boolean DEVELOPER_MODE
private static boolean QUICK_REPORT_MODE
private static final String RESOURCE
private static final String CLASS_NAME
private static final String STDERR
private long totalInstanceCount_
private TimerStats timerStats
private PrintWriter log_
private String logLocation_
private Version version_
private ReadBlobCheckOpts opts
Constructor Detail |
public ReadBlobData()
Method Detail |
public static void main(String[] args)
public void execute(String[] args) throws WTException
WTException
public void readDataForClasses(String dir_, String file_name) throws WTException
WTException
private void transformToHTML(String xml_name, String dir_, String xsl_file) throws SAXException, IOException, WTException
SAXException
IOException
WTException
private InputStream getStyleSheetInputStream(String xsl_file) throws IOException
xsl_file
- The XSL stylesheet that must be in this class's directory.
IOException
private String getPackageAsPath()
private String showStackTrace(Throwable e) throws SAXException
SAXException
private String readBlobDataFor_(String dir_name, String out_file_name) throws WTException
WTException
private void read(File file, DefaultHandler contentHandler) throws WTException
WTException
protected void finalize()
private final PrintWriter getLog()
private void report(String message)
private void report(String message_key, Object[] args)
private void warning(String localized_message)
private void warning(String message_key, Object[] args)
protected void logSetup() throws WTException
WTException
private boolean sendFeedback(String msg)
private void logMessage(String msg)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |