📄 report.java
字号:
if (!(((lexer.badAccess & USING_FRAMES) != 0) && ((lexer.badAccess & USING_NOFRAMES) == 0)))
lexer.badAccess &= ~(USING_FRAMES | USING_NOFRAMES);
}
if (lexer.badChars != 0)
{
if ((lexer.badChars & WINDOWS_CHARS) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badchars_summary") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
}
if (lexer.badForm != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badform_summary") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if (lexer.badAccess != 0)
{
if ((lexer.badAccess & MISSING_SUMMARY) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badaccess_missing_summary") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if ((lexer.badAccess & MISSING_IMAGE_ALT) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badaccess_missing_image_alt") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if ((lexer.badAccess & MISSING_IMAGE_MAP) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badaccess_missing_image_map") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if ((lexer.badAccess & MISSING_LINK_ALT) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badaccess_missing_link_alt") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if (((lexer.badAccess & USING_FRAMES) != 0) && ((lexer.badAccess & USING_NOFRAMES) == 0))
{
try {
tidyPrint(lexer.errout,
res.getString("badaccess_frames") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
try {
tidyPrint(lexer.errout,
MessageFormat.format(res.getString("badaccess_summary"),
new Object[] {ACCESS_URL}) );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if (lexer.badLayout != 0)
{
if ((lexer.badLayout & USING_LAYER) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badlayout_using_layer") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if ((lexer.badLayout & USING_SPACER) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badlayout_using_spacer") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if ((lexer.badLayout & USING_FONT) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badlayout_using_font") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if ((lexer.badLayout & USING_NOBR) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badlayout_using_nobr") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
if ((lexer.badLayout & USING_BODY) != 0)
{
try {
tidyPrint(lexer.errout,
res.getString("badlayout_using_body") );
}
catch ( MissingResourceException e ) {
lexer.errout.println( e.toString() );
}
}
}
}
public static void unknownOption(PrintWriter errout, char c)
{
try {
tidyPrintln(errout,
MessageFormat.format( res.getString("unrecognized_option"),
new Object[] {new String(new char[] {c})} ));
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
public static void unknownFile(PrintWriter errout, String program, String file)
{
try {
tidyPrintln(errout,
MessageFormat.format( res.getString("unknown_file"),
new Object[] {program, file} ));
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
public static void needsAuthorIntervention(PrintWriter errout)
{
try {
tidyPrintln(errout,
res.getString("needs_author_intervention") );
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
public static void missingBody(PrintWriter errout)
{
try {
tidyPrintln(errout,
res.getString("missing_body") );
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
public static void reportNumberOfSlides(PrintWriter errout, int count)
{
try {
tidyPrintln(errout,
MessageFormat.format( res.getString("slides_found"),
new Object[] {new Integer(count)} ));
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
public static void generalInfo(PrintWriter errout)
{
try {
tidyPrintln(errout,
res.getString("general_info") );
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
public static void helloMessage(PrintWriter errout, String date, String filename)
{
currentFile = filename; /* for use with Gnu Emacs */
try {
tidyPrintln(errout,
MessageFormat.format( res.getString("hello_message"),
new Object[] {date, filename} ));
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
public static void reportVersion(PrintWriter errout, Lexer lexer, String filename, Node doctype)
{
int i, c;
int state = 0;
String vers = lexer.HTMLVersionName();
MutableInteger cc = new MutableInteger();
try {
if (doctype != null)
{
tidyPrint(errout,
MessageFormat.format( res.getString("doctype_given"),
new Object[] {filename} ));
for (i = doctype.start; i < doctype.end; ++i)
{
c = (int)doctype.textarray[i];
/* look for UTF-8 multibyte character */
if (c < 0) {
i += PPrint.getUTF8(doctype.textarray, i, cc);
c = cc.value;
}
if (c == (char)'"')
++state;
else if (state == 1)
errout.print((char)c);
}
errout.print('"');
}
tidyPrintln(errout,
MessageFormat.format( res.getString("report_version"),
new Object[] {filename, (vers != null ? vers : "HTML proprietary")} ));
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
public static void reportNumWarnings(PrintWriter errout, Lexer lexer)
{
if (lexer.warnings > 0)
{
try {
tidyPrintln(errout,
MessageFormat.format( res.getString("num_warnings"),
new Object[] {new Integer(lexer.warnings)} ));
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
else
{
try {
tidyPrintln(errout,
res.getString("no_warnings") );
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
}
public static void helpText(PrintWriter out, String prog)
{
try {
tidyPrintln(out,
MessageFormat.format( res.getString("help_text"),
new Object[] {prog, RELEASE_DATE} ));
}
catch ( MissingResourceException e ) {
out.println( e.toString() );
}
}
public static void badTree(PrintWriter errout)
{
try {
tidyPrintln(errout,
res.getString("bad_tree") );
}
catch ( MissingResourceException e ) {
errout.println( e.toString() );
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -