public void println() { if (!_logged) { log(); } }
/** * reports the warning or error and then resets the current error/warning. **/ private void log() { //System.out.println("Logging........................."); if (_error) { reportError(_msg,_line,_column); } else { reportWarning(_msg,_line,_column); } _logged = true; _line = -1; _column=-1; _msg=""; }
public void print(long l) { print(String.valueOf(l)); }
/** * Detects a new log if starting with "line", a warning if message starts with "Warning" * and an error if it starts with "Error" **/ public void print(String s) { if (s.startsWith("line")) { if (!_logged && _line > 0 && _msg!=null && _msg.length()>0) { log(); // log previous!!! } _logged = false; // new error.... StringTokenizer tok = new StringTokenizer(s); // skip first "line" tok.nextToken(); // get line _line = parseInteger(tok.nextToken()); // skip second "column" tok.nextToken(); // get column _column = parseInteger(tok.nextToken()); } else if (s.startsWith("Warning")) { _error = false; _msg = s; } else if (s.startsWith("Error")) { _error = true; _msg = s; } else { // non structured msg _msg += s; } }
private static Tidy getParser( URL url ) { Tidy tidy = new Tidy(); tidy.setCharEncoding( org.w3c.tidy.Configuration.UTF8 ); tidy.setQuiet( true ); tidy.setShowWarnings( HTMLParserFactory.isParserWarningsEnabled() ); if (!HTMLParserFactory.getHTMLParserListeners().isEmpty()) { tidy.setErrout( new JTidyPrintWriter( url ) ); } return tidy; }
public void print(double d) { print(String.valueOf(d)); }
/** * Detects a new log if starting with "line", a warning if message starts with "Warning" * and an error if it starts with "Error" **/ public void print(String s) { if (s.startsWith("line")) { if (!_logged && _line > 0 && _msg!=null && _msg.length()>0) { log(); // log previous!!! } _logged = false; // new error.... StringTokenizer tok = new StringTokenizer(s); // skip first "line" tok.nextToken(); // get line _line = parseInteger(tok.nextToken()); // skip second "column" tok.nextToken(); // get column _column = parseInteger(tok.nextToken()); } else if (s.startsWith("Warning")) { _error = false; _msg = s; } else if (s.startsWith("Error")) { _error = true; _msg = s; } else { // non structured msg _msg += s; } }
private static Tidy getParser( URL url ) { Tidy tidy = new Tidy(); tidy.setCharEncoding( org.w3c.tidy.Configuration.UTF8 ); tidy.setQuiet( true ); tidy.setShowWarnings( HTMLParserFactory.isParserWarningsEnabled() ); if (!HTMLParserFactory.getHTMLParserListeners().isEmpty()) { tidy.setErrout( new JTidyPrintWriter( url ) ); } return tidy; }
public void print(boolean b) { print(String.valueOf(b)); }
/** * reports the warning or error and then resets the current error/warning. **/ private void log() { //System.out.println("Logging........................."); if (_error) { reportError(_msg,_line,_column); } else { reportWarning(_msg,_line,_column); } _logged = true; _line = -1; _column=-1; _msg=""; }
/** * Detects a new log if starting with "line", a warning if message starts with "Warning" * and an error if it starts with "Error" **/ public void print(String s) { if (s.startsWith("line")) { if (!_logged && _line > 0 && _msg!=null && _msg.length()>0) { log(); // log previous!!! } _logged = false; // new error.... StringTokenizer tok = new StringTokenizer(s); // skip first "line" tok.nextToken(); // get line _line = parseInteger(tok.nextToken()); // skip second "column" tok.nextToken(); // get column _column = parseInteger(tok.nextToken()); } else if (s.startsWith("Warning")) { _error = false; _msg = s; } else if (s.startsWith("Error")) { _error = true; _msg = s; } else { // non structured msg _msg += s; } }
public void println() { if (!_logged) { log(); } }
private static Tidy getParser( URL url ) { Tidy tidy = new Tidy(); tidy.setCharEncoding( org.w3c.tidy.Configuration.UTF8 ); tidy.setQuiet( true ); tidy.setShowWarnings( HTMLParserFactory.isParserWarningsEnabled() ); if (!HTMLParserFactory.getHTMLParserListeners().isEmpty()) { tidy.setErrout( new JTidyPrintWriter( url ) ); } return tidy; }
public void print(char[] s) { print(String.valueOf(s)); }
/** * reports the warning or error and then resets the current error/warning. **/ private void log() { //System.out.println("Logging........................."); if (_error) { reportError(_msg,_line,_column); } else { reportWarning(_msg,_line,_column); } _logged = true; _line = -1; _column=-1; _msg=""; }
public void println() { if (!_logged) { log(); } }