|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.afcs.warts.report.DataHighBitAnalysisReport
The DataHighBitAnalysisReport class creates text and HTML reports on the high-bit analysis of a single piece of data.
LICENSE: This code is released to the public domain and may be used for any purpose whatsoever without permission or acknowledgment.
Field Summary | |
static java.awt.Color |
AMBIGUOUS_CELL
The colour to be used to indicate the presence of ambiguous characters, that may be Latin-1 or UTF-8. |
static java.awt.Color |
ILLEGAL_CELL
The colour to be used to indicate the presence of illegal bytes. |
static java.awt.Color |
LATIN_1_CELL
The colour to be used to indicate the presence of Latin-1 characters. |
static java.awt.Color |
MIXED_CELL
The colour to be used to indicate the presence of more than one character type within a field. |
static java.awt.Color |
OVERSIZE_CELL
The colour to be used to indicate the presence of oversize character data within a column. |
static java.awt.Color |
THREE_BYTE_UTF_8_CELL
The colour to be used to indicate the presence of 3 byte UTF-8 characters. |
static java.awt.Color |
TWO_BYTE_UTF_8_CELL
The colour to be used to indicate the presence of 2 byte UTF-8 characters. |
Method Summary | |
static java.lang.String |
createAnalysisHtml(DataHighBitAnalysis analysis)
Returns HTML containing the contents of the short report with any HTML special characters escaped, as well as a byte-by-byte analysis of the data contained in the analysis. |
static java.awt.Color |
getColor(int byteClass)
This method returns the appropriate color for the specified byte class, which should be one of the BYTE_CLASS_* constants from DataHighBitAnalysis . |
static java.lang.String |
getShortReport(DataHighBitAnalysis analysis)
Generates a short report about the results of the analysis performed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.awt.Color LATIN_1_CELL
public static final java.awt.Color TWO_BYTE_UTF_8_CELL
public static final java.awt.Color THREE_BYTE_UTF_8_CELL
public static final java.awt.Color AMBIGUOUS_CELL
public static final java.awt.Color ILLEGAL_CELL
public static final java.awt.Color MIXED_CELL
public static final java.awt.Color OVERSIZE_CELL
Method Detail |
public static java.awt.Color getColor(int byteClass)
DataHighBitAnalysis
.
byteClass
- The byte class to retrieve the color for.
public static java.lang.String getShortReport(DataHighBitAnalysis analysis)
analysis
- The analysis to report on.
java.lang.NullPointerException
- If analysis is null.public static java.lang.String createAnalysisHtml(DataHighBitAnalysis analysis)
<pre> element to make sure a fixed-width font is used,
but the result will need to be wrapped in an <html>
element before being used in a text pane or label.
- Parameters:
analysis
- The analysis to report on.
- Returns:
- An extended report on the specified analysis formatted
as HTML.
- Throws:
java.lang.NullPointerException
- If analysis is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |