Lines Matching refs:encoding
31 * The encoding of the bundle (e.g. 'en', 'en_US', 'de', etc.)
33 public String encoding;
35 * A descriptor of the language in the encoding (e.g. English, German, etc.)
39 * A descriptor of the country in the encoding (e.g. US, Canada, Great Britain)
43 * The descriptor of the variant in the encoding (e.g. Euro, Irish, etc.)
74 * Constructor for creating an empty bundle with a given encoding
77 public Bundle(String encoding) {
78 this.encoding = encoding;
113 * This method returns the language encoding string, or null if it is not specified
117 if (encoding == null)
119 if (encoding.indexOf("_") >= 0)
120 return encoding.substring(0,encoding.indexOf("_"));
121 return encoding.trim();
126 * This method returns the country encoding string, or null if it is not specified
130 if (encoding == null || encoding.indexOf("_") < 0)
133 String workStr = encoding.substring(encoding.indexOf("_")+1,encoding.length());
135 return workStr.substring(0,encoding.indexOf("_"));
141 * This method returns the variant encoding string, or null if it is not specified
145 if (encoding == null || encoding.indexOf("_") < 0)
148 String workStr = encoding.substring(encoding.indexOf("_")+1,encoding.length());
152 workStr = workStr.substring(encoding.indexOf("_")+1, workStr.length());
409 * A method useful in debugging. The string returned displays the encoding
420 retStr += " (" + (encoding == null || encoding.equals("") ? "Base Class" : encoding) + ")";
433 if (encoding != null) retStr += "# @fileEncoding " + encoding + "\n";