| java.lang.Object workbench.util.EncodingUtil
EncodingUtil | public class EncodingUtil (Code) | | Utility class to handle encoding related stuff
author: support@sql-workbench.net |
cleanupEncoding | public static String cleanupEncoding(String input)(Code) | | Allow some common other names for encodings (e.g. UTF for UTF-8)
|
createBufferedReader | public static BufferedReader createBufferedReader(File f, String encoding) throws IOException(Code) | | Create a BufferedReader for the given file and encoding.
If no encoding is given, then a regular FileReader without
a specific encoding is used.
The default buffer size is 16kb
|
createBufferedReader | public static BufferedReader createBufferedReader(File f, String encoding, int buffSize) throws IOException(Code) | | Create a BufferedReader for the given file, encoding and buffer size.
If no encoding is given, then a regular FileReader without
a specific encoding is used.
|
getDefaultEncoding | public static String getDefaultEncoding()(Code) | | Returns the system's default encoding.
|
getEncodings | public static synchronized String[] getEncodings()(Code) | | Return all available encodings.
|
isEncodingSupported | public static boolean isEncodingSupported(String encoding)(Code) | | Test if the given encoding is supported. Before this is
tested, cleanupEncoding() is called to allow for some
common "abbreviations"
See Also: EncodingUtil.cleanupEncoding(String) |
|
|