1 23 package org.enhydra.xml.io; 24 25 26 27 32 public class Encoding { 33 36 private Encoding() { 37 } 38 39 42 public static boolean isValidJavaEncoding(String javaEncoding) { 43 return Encodings.getEncodings().isValid(javaEncoding); 44 } 45 46 51 public static String java2XmlEncoding(String javaEncoding) { 52 return Encodings.getEncodings().getMIMEPreferred(javaEncoding); 53 } 54 55 58 public static boolean isValidXMLEncoding(String xmlEncoding) { 59 return Encodings.getEncodings().isValid(xmlEncoding); 60 } 61 62 67 public static String xml2JavaEncoding(String xmlEncoding) { 68 return Encodings.getEncodings().getName(xmlEncoding); 69 } 70 71 77 public static int getMaxCharacterValue(String xmlEncoding) { 78 return Encodings.getEncodings().getMaxCharacterValue(xmlEncoding); 79 } 80 } 81 | Popular Tags |