Home
last modified time | relevance | path

Searched refs:Charset (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
DCharsetUtil.java797 private static class Charset implements Comparable<Charset> { class in CharsetUtil
802 private Charset(String canonical, String mime, String[] aliases) { in Charset() method in CharsetUtil.Charset
808 public int compareTo(Charset c) { in compareTo()
813 private static Charset[] JAVA_CHARSETS = {
814 new Charset("ISO8859_1", "ISO-8859-1",
819 new Charset("ISO8859_2", "ISO-8859-2",
823 …new Charset("ISO8859_3", "ISO-8859-3", new String[] {"ISO_8859-3:1988", "iso-ir-109", "ISO_8859-3"…
824 new Charset("ISO8859_4", "ISO-8859-4",
827 new Charset("ISO8859_5", "ISO-8859-5",
830 …new Charset("ISO8859_6", "ISO-8859-6", new String[] {"ISO_8859-6:1987", "iso-ir-127", "ISO_8859-6"…
[all …]
/packages/apps/Email/src/com/beetstra/jutf7/
DCharsetProvider.java27 import java.nio.charset.Charset;
54 private Charset utf7charset = new UTF7Charset(UTF7_NAME, UTF7_ALIASES, false);
55 private Charset utf7oCharset = new UTF7Charset(UTF7_O_NAME, UTF7_O_ALIASES, true);
56 private Charset imap4charset = new ModifiedUTF7Charset(UTF7_M_NAME, UTF7_M_ALIASES);
57 private List<Charset> charsets;
60 charsets = Arrays.asList(new Charset[] { in CharsetProvider()
69 public Charset charsetForName(String charsetName) { in charsetForName()
71 for (Iterator<Charset> iter = charsets.iterator(); iter.hasNext();) { in charsetForName()
72 Charset charset = iter.next(); in charsetForName()
76 for (Iterator<Charset> iter = charsets.iterator(); iter.hasNext();) { in charsetForName()
[all …]
DUTF7StyleCharset.java27 import java.nio.charset.Charset;
40 abstract class UTF7StyleCharset extends Charset {
74 public boolean contains(final Charset cs) { in contains()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DFileWriterWithEncoding.java25 import java.nio.charset.Charset;
90 public FileWriterWithEncoding(String filename, Charset encoding) throws IOException { in FileWriterWithEncoding()
103 …public FileWriterWithEncoding(String filename, Charset encoding, boolean append) throws IOExceptio… in FileWriterWithEncoding()
166 public FileWriterWithEncoding(File file, Charset encoding) throws IOException { in FileWriterWithEncoding()
179 public FileWriterWithEncoding(File file, Charset encoding, boolean append) throws IOException { in FileWriterWithEncoding()
234 if (encoding instanceof Charset) { in initWriter()
235 writer = new OutputStreamWriter(stream, (Charset)encoding); in initWriter()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/
DUtility.java19 import java.nio.charset.Charset;
23 public static final Charset ASCII = Charset.forName("US-ASCII");
55 private static byte[] encode(Charset charset, String s) { in encode()
65 private static String decode(Charset charset, byte[] b) { in decode()
/packages/apps/Tag/src/com/android/apps/tag/record/
DTextRecord.java33 import java.nio.charset.Charset;
137 byte[] langBytes = locale.getLanguage().getBytes(Charset.forName("US-ASCII")); in newTextRecord()
139 Charset utfEncoding = encodeInUtf8 ? Charset.forName("UTF-8") : Charset.forName("UTF-16"); in newTextRecord()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
DEncoderUtil.java23 import java.nio.charset.Charset;
321 int usedCharacters, Charset charset, Encoding encoding) { in encodeEncodedWord()
513 int usedCharacters, Charset charset, byte[] bytes) { in encodeB()
541 int usedCharacters, Charset charset, byte[] bytes) { in encodeQ()
584 private static byte[] encode(String text, Charset charset) { in encode()
591 private static Charset determineCharset(String text) { in determineCharset()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java56 import java.nio.charset.Charset;
67 public static final Charset UTF_8 = Charset.forName("UTF-8");
68 public static final Charset ASCII = Charset.forName("US-ASCII");
293 private static byte[] encode(Charset charset, String s) { in encode()
303 private static String decode(Charset charset, byte[] b) { in decode()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyValue.java28 import java.nio.charset.Charset;
38 private final static Charset DEFAULT_CHARSET = Charset.forName("UTF-8");
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifTag.java19 import java.nio.charset.Charset;
63 private static final Charset US_ASCII = Charset.forName("US-ASCII");
DCountedDataInputStream.java26 import java.nio.charset.Charset;
124 String readString(int n, Charset charset) throws IOException { in readString()
DExifParser.java24 import java.nio.charset.Charset;
118 private static final Charset US_ASCII = Charset.forName("US-ASCII");
775 private String readString(int n, Charset charset) throws IOException { in readString()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DCountedDataInputStream.java25 import java.nio.charset.Charset;
131 public String readString(int n, Charset charset) throws IOException { in readString()
DExifParser.java24 import java.nio.charset.Charset;
142 private static final Charset US_ASCII = Charset.forName("US-ASCII");
825 protected String readString(int n, Charset charset) throws IOException { in readString()
DExifTag.java19 import java.nio.charset.Charset;
70 private static Charset US_ASCII = Charset.forName("US-ASCII");
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DCountedDataInputStream.java25 import java.nio.charset.Charset;
135 public String readString(int n, Charset charset) throws IOException { in readString()
DExifParser.java25 import java.nio.charset.Charset;
143 private static final Charset US_ASCII = Charset.forName("US-ASCII");
827 protected String readString(int n, Charset charset) throws IOException { in readString()
DExifTag.java19 import java.nio.charset.Charset;
70 private static Charset US_ASCII = Charset.forName("US-ASCII");
/packages/apps/Camera2/src/com/android/camera/exif/
DCountedDataInputStream.java25 import java.nio.charset.Charset;
131 public String readString(int n, Charset charset) throws IOException { in readString()
DExifParser.java24 import java.nio.charset.Charset;
142 private static final Charset US_ASCII = Charset.forName("US-ASCII");
825 protected String readString(int n, Charset charset) throws IOException { in readString()
DExifTag.java19 import java.nio.charset.Charset;
70 private static Charset US_ASCII = Charset.forName("US-ASCII");
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DWebViewContextMenu.java44 import java.nio.charset.Charset;
263 decodedPhoneExtra = URLDecoder.decode(extra, Charset.defaultCharset().name()); in onCreateContextMenu()
334 geoExtra = URLEncoder.encode(extra, Charset.defaultCharset().name()); in onCreateContextMenu()
/packages/apps/Dialer/java/com/android/contacts/common/dialog/
DCallSubjectDialog.java53 import java.nio.charset.Charset;
78 private Charset mMessageEncoding;
544 mMessageEncoding = Charset.forName(charsetName); in loadConfiguration()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java49 import java.nio.charset.Charset;
478 Charset latin1 = Charset.forName("ISO-8859-1"); in updateWidestChar()
/packages/apps/Contacts/src/com/android/contacts/dialog/
DCallSubjectDialog.java56 import java.nio.charset.Charset;
88 private Charset mMessageEncoding;
612 mMessageEncoding = Charset.forName(charsetName); in loadConfiguration()

12