/** * Constructs a <code>Charset</code> object. Duplicated aliases are * ignored. * * @param canonicalName * the canonical name of the charset. * @param aliases * an array containing all aliases of the charset. May be null. * @throws IllegalCharsetNameException * on an illegal value being supplied for either * <code>canonicalName</code> or for any element of * <code>aliases</code>. */ protected Charset(String canonicalName, String[] aliases) { // Check whether the given canonical name is legal. checkCharsetName(canonicalName); this.canonicalName = canonicalName; // Collect and check each unique alias. this.aliasesSet = new HashSet<String>(); if (aliases != null) { for (String alias : aliases) { checkCharsetName(alias); this.aliasesSet.add(alias); } } }
checkCharsetName(charsetName); cs = NativeConverter.charsetForName(charsetName); if (cs != null) {
/** * Constructs a <code>Charset</code> object. Duplicated aliases are * ignored. * * @param canonicalName * the canonical name of the charset. * @param aliases * an array containing all aliases of the charset. May be null. * @throws IllegalCharsetNameException * on an illegal value being supplied for either * <code>canonicalName</code> or for any element of * <code>aliases</code>. */ protected Charset(String canonicalName, String[] aliases) { // Check whether the given canonical name is legal. checkCharsetName(canonicalName); this.canonicalName = canonicalName; // Collect and check each unique alias. this.aliasesSet = new HashSet<String>(); if (aliases != null) { for (String alias : aliases) { checkCharsetName(alias); this.aliasesSet.add(alias); } } }
/** * Constructs a <code>Charset</code> object. Duplicated aliases are * ignored. * * @param canonicalName * the canonical name of the charset. * @param aliases * an array containing all aliases of the charset. May be null. * @throws IllegalCharsetNameException * on an illegal value being supplied for either * <code>canonicalName</code> or for any element of * <code>aliases</code>. */ protected Charset(String canonicalName, String[] aliases) { // Check whether the given canonical name is legal. checkCharsetName(canonicalName); this.canonicalName = canonicalName; // Collect and check each unique alias. this.aliasesSet = new HashSet<String>(); if (aliases != null) { for (String alias : aliases) { checkCharsetName(alias); this.aliasesSet.add(alias); } } }
/** * Constructs a <code>Charset</code> object. Duplicated aliases are * ignored. * * @param canonicalName * the canonical name of the charset. * @param aliases * an array containing all aliases of the charset. May be null. * @throws IllegalCharsetNameException * on an illegal value being supplied for either * <code>canonicalName</code> or for any element of * <code>aliases</code>. */ protected Charset(String canonicalName, String[] aliases) { // Check whether the given canonical name is legal. checkCharsetName(canonicalName); this.canonicalName = canonicalName; // Collect and check each unique alias. this.aliasesSet = new HashSet<String>(); if (aliases != null) { for (String alias : aliases) { checkCharsetName(alias); this.aliasesSet.add(alias); } } }
/** * Constructs a <code>Charset</code> object. Duplicated aliases are * ignored. * * @param canonicalName * the canonical name of the charset. * @param aliases * an array containing all aliases of the charset. May be null. * @throws IllegalCharsetNameException * on an illegal value being supplied for either * <code>canonicalName</code> or for any element of * <code>aliases</code>. */ protected Charset(String canonicalName, String[] aliases) { // Check whether the given canonical name is legal. checkCharsetName(canonicalName); this.canonicalName = canonicalName; // Collect and check each unique alias. this.aliasesSet = new HashSet<String>(); if (aliases != null) { for (String alias : aliases) { checkCharsetName(alias); this.aliasesSet.add(alias); } } }
/** * Constructs a <code>Charset</code> object. Duplicated aliases are * ignored. * * @param canonicalName * the canonical name of the charset. * @param aliases * an array containing all aliases of the charset. May be null. * @throws IllegalCharsetNameException * on an illegal value being supplied for either * <code>canonicalName</code> or for any element of * <code>aliases</code>. */ protected Charset(String canonicalName, String[] aliases) { // Check whether the given canonical name is legal. checkCharsetName(canonicalName); this.canonicalName = canonicalName; // Collect and check each unique alias. this.aliasesSet = new HashSet<String>(); if (aliases != null) { for (String alias : aliases) { checkCharsetName(alias); this.aliasesSet.add(alias); } } }
/** * Constructs a <code>Charset</code> object. Duplicated aliases are * ignored. * * @param canonicalName * the canonical name of the charset. * @param aliases * an array containing all aliases of the charset. May be null. * @throws IllegalCharsetNameException * on an illegal value being supplied for either * <code>canonicalName</code> or for any element of * <code>aliases</code>. */ protected Charset(String canonicalName, String[] aliases) { // Check whether the given canonical name is legal. checkCharsetName(canonicalName); this.canonicalName = canonicalName; // Collect and check each unique alias. this.aliasesSet = new HashSet<String>(); if (aliases != null) { for (String alias : aliases) { checkCharsetName(alias); this.aliasesSet.add(alias); } } }
checkCharsetName(charsetName); cs = NativeConverter.charsetForName(charsetName); if (cs != null) {
checkCharsetName(charsetName); cs = NativeConverter.charsetForName(charsetName); if (cs != null) {
checkCharsetName(charsetName); cs = NativeConverter.charsetForName(charsetName); if (cs != null) {
checkCharsetName(charsetName); cs = NativeConverter.charsetForName(charsetName); if (cs != null) {
checkCharsetName(charsetName); cs = NativeConverter.charsetForName(charsetName); if (cs != null) {
checkCharsetName(charsetName); cs = NativeConverter.charsetForName(charsetName); if (cs != null) {