android: AndrOBD library vendored (no submodule, no git link)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.fr3ts0n.common;
|
||||
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Wrapper class to ensure UTF8 encoding for resource bundle reading
|
||||
*
|
||||
* @author fr3ts0n
|
||||
*/
|
||||
|
||||
public class UTF8Bundle
|
||||
{
|
||||
private static ResourceBundle.Control ctrl = null;
|
||||
|
||||
public UTF8Bundle(ResourceBundle.Control control)
|
||||
{
|
||||
ctrl = control;
|
||||
}
|
||||
|
||||
public static ResourceBundle getBundle(String bundleName)
|
||||
{
|
||||
if (ctrl != null)
|
||||
{
|
||||
return ResourceBundle.getBundle(bundleName, ctrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
return ResourceBundle.getBundle(bundleName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user