Android Open Source - sdk-hyphenation Logging Error Handler






From Project

Back to project page sdk-hyphenation.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project sdk-hyphenation listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.silpa.hyphenation.util;
//ww  w.  j a  v  a2s  . co m
import java.util.logging.Level;
import java.util.logging.Logger;

public final class LoggingErrorHandler implements ErrorHandler {
    public Logger log;

    public LoggingErrorHandler(Logger log) {
        this.log = log;
    }

    public void debug(String domain, String message) {
        log.fine(domain + " - " + message);
    }

    public void info(String s) {
        log.info(s);
    }

    public void warning(String s) {
        log.warning(s);
    }

    public void error(String s) {
        log.severe(s);
    }

    public void exception(String s, Exception e) {
        log.log(Level.SEVERE, s, e);
    }

}




Java Source Code List

org.silpa.hyphenation.text.ByteScanner.java
org.silpa.hyphenation.text.Hyphenator.java
org.silpa.hyphenation.text.RuleDefinition.java
org.silpa.hyphenation.text.TreeNode.java
org.silpa.hyphenation.text.Utf8TexParser.java
org.silpa.hyphenation.util.Applicator.java
org.silpa.hyphenation.util.ErrorHandler.java
org.silpa.hyphenation.util.Hashtable.java
org.silpa.hyphenation.util.List.java
org.silpa.hyphenation.util.LoggingErrorHandler.java