Mercurial > 510Connectbot
diff src/org/tn5250j/encoding/ToolboxCodePageFactory.java @ 25:5949eb469a79 tn5250
adding tn5250 files, native android logging
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 03 Jun 2014 12:10:21 -0700 |
parents | cbdff98c45ea |
children | b29b39f386a4 |
line wrap: on
line diff
--- a/src/org/tn5250j/encoding/ToolboxCodePageFactory.java Tue Jun 03 11:44:37 2014 -0700 +++ b/src/org/tn5250j/encoding/ToolboxCodePageFactory.java Tue Jun 03 12:10:21 2014 -0700 @@ -29,8 +29,8 @@ import java.lang.reflect.Constructor; import java.lang.reflect.Method; -import org.tn5250j.tools.logging.TN5250jLogFactory; -import org.tn5250j.tools.logging.TN5250jLogger; +import android.util.Log; + /* package */ class ToolboxCodePageFactory { @@ -55,7 +55,7 @@ private static ToolboxCodePageFactory singleton; - private final TN5250jLogger log = TN5250jLogFactory.getLogger(this.getClass()); + private ToolboxCodePageFactory() { /* private for singleton */ @@ -77,7 +77,7 @@ Class.forName(CONVERTER_NAME, false, loader); return CODEPAGES; } catch (Exception e) { - log.info("Couldn't locate JT400 Toolbox in classpath. Charset converters can't be used."); + Log.i(TAG,"Couldn't locate JT400 Toolbox in classpath. Charset converters can't be used."); return new String[0]; } } @@ -96,7 +96,7 @@ Object convobj = conv_constructor.newInstance(new Object[] { encoding }); return new ToolboxConverterProxy(convobj, toBytes_method, toString_method); } catch (Exception e) { - log.warn("Can't load charset converter from JT400 Toolbox for code page " + encoding, e); + Log.w(TAG,"Can't load charset converter from JT400 Toolbox for code page " + encoding, e); return null; } }