/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
D | FileWriterWithEncoding.java | 65 public FileWriterWithEncoding(String filename, String encoding) throws IOException { in FileWriterWithEncoding() argument 66 this(new File(filename), encoding, false); in FileWriterWithEncoding() 78 …public FileWriterWithEncoding(String filename, String encoding, boolean append) throws IOException… in FileWriterWithEncoding() argument 79 this(new File(filename), encoding, append); in FileWriterWithEncoding() 90 public FileWriterWithEncoding(String filename, Charset encoding) throws IOException { in FileWriterWithEncoding() argument 91 this(new File(filename), encoding, false); in FileWriterWithEncoding() 103 …public FileWriterWithEncoding(String filename, Charset encoding, boolean append) throws IOExceptio… in FileWriterWithEncoding() argument 104 this(new File(filename), encoding, append); in FileWriterWithEncoding() 115 public FileWriterWithEncoding(String filename, CharsetEncoder encoding) throws IOException { in FileWriterWithEncoding() argument 116 this(new File(filename), encoding, false); in FileWriterWithEncoding() [all …]
|
D | LockableFileWriter.java | 144 public LockableFileWriter(File file, String encoding) throws IOException { in LockableFileWriter() argument 145 this(file, encoding, false, null); in LockableFileWriter() 158 public LockableFileWriter(File file, String encoding, boolean append, in LockableFileWriter() argument 183 out = initWriter(file, encoding, append); in LockableFileWriter() 230 private Writer initWriter(File file, String encoding, boolean append) throws IOException { in initWriter() argument 235 if (encoding == null) { in initWriter() 239 writer = new OutputStreamWriter(stream, encoding); in initWriter()
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | IOUtils.java | 257 public static byte[] toByteArray(Reader input, String encoding) in toByteArray() argument 260 copy(input, output, encoding); in toByteArray() 319 public static char[] toCharArray(InputStream is, String encoding) in toCharArray() argument 322 copy(is, output, encoding); in toCharArray() 380 public static String toString(InputStream input, String encoding) in toString() argument 383 copy(input, sw, encoding); in toString() 434 public static String toString(byte[] input, String encoding) in toString() argument 436 if (encoding == null) { in toString() 439 return new String(input, encoding); in toString() 480 public static List<String> readLines(InputStream input, String encoding) throws IOException { in readLines() argument [all …]
|
D | FileUtils.java | 1103 public static String readFileToString(File file, String encoding) throws IOException { in readFileToString() argument 1107 return IOUtils.toString(in, encoding); in readFileToString() 1157 public static List<String> readLines(File file, String encoding) throws IOException { in readLines() argument 1161 return IOUtils.readLines(in, encoding); in readLines() 1211 public static LineIterator lineIterator(File file, String encoding) throws IOException { in lineIterator() argument 1215 return IOUtils.lineIterator(in, encoding); in lineIterator() 1251 … public static void writeStringToFile(File file, String data, String encoding) throws IOException { in writeStringToFile() argument 1255 IOUtils.write(data, out, encoding); in writeStringToFile() 1308 …public static void writeLines(File file, String encoding, Collection<Object> lines) throws IOExcep… in writeLines() argument 1309 writeLines(file, encoding, lines, null); in writeLines() [all …]
|
D | CopyUtils.java | 174 String encoding) in copy() argument 177 copy(in, output, encoding); in copy() 265 String encoding) in copy() argument 267 InputStreamReader in = new InputStreamReader(input, encoding); in copy()
|
/packages/services/Telephony/src/org/apache/commons/io/ |
D | IOUtils.java | 256 public static byte[] toByteArray(Reader input, String encoding) in toByteArray() argument 259 copy(input, output, encoding); in toByteArray() 318 public static char[] toCharArray(InputStream is, String encoding) in toCharArray() argument 321 copy(is, output, encoding); in toCharArray() 379 public static String toString(InputStream input, String encoding) in toString() argument 382 copy(input, sw, encoding); in toString() 433 public static String toString(byte[] input, String encoding) in toString() argument 435 if (encoding == null) { in toString() 438 return new String(input, encoding); in toString() 479 public static List<String> readLines(InputStream input, String encoding) throws IOException { in readLines() argument [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | encoding.md | 9 > (in §3) JSON text SHALL be encoded in Unicode. The default encoding is UTF-8. 11 …ible. When JSON is written in UTF-16 or UTF-32, the binary content-transfer-encoding must be used. 30 * UTF-8: 8-bit variable-width encoding. It maps a code point to 1–4 bytes. 31 * UTF-16: 16-bit variable-width encoding. It maps a code point to 1–2 16-bit code units (i.e., 2–4 … 32 * UTF-32: 32-bit fixed-width encoding. It directly maps a code point to a single 32-bit code unit (… 67 … `GenericValue<Encoding>` and `GenericDocument<Encoding>` indicates the encoding to be used to rep… 80 As shown in the declaration, each encoding has a `CharType` template parameter. Actually, it may be… 88 …, sometimes we may need to read/write files of different encodings. The encoding needed to be deci… 90 `AutoUTF` is an encoding designed for this purpose. It chooses which encoding to be used according … 110 ASCII *cannot* be used in memory (encoding of `Document` or target encoding of `Reader`), as it can… [all …]
|
D | dom.md | 34 …encoding of JSON String value in memory. Possible options are `UTF8`, `UTF16`, `UTF32`. Note that,… 36 …de-enabled functions in Windows use UTF-16 (wide character) encoding. No matter what encoding was … 114 `kParseValidateEncodingFlag` | Validate encoding of JSON strings. 121 The `SourceEncoding` parameter defines what encoding is in the stream. This can be differed to the … 143 `kParseErrorStringInvalidEncoding` | Invalid encoding in string. 218 2. The source encoding in stream and target encoding in document must be the same. 226 …encoding of the stream can be different from the encoding of the DOM. For example, the source stre… 232 When the source encoding of stream is the same as encoding of DOM, by default, the parser will *not…
|
D | sax.md | 124 …opy = false`. And beware that, the character type depends on the target encoding, which will be ex… 151 …both source and target encoding. The source encoding means the encoding in the JSON stream. The ta… 258 The `SourceEncoding` template parameter specifies the encoding to be used in `String(const Ch*, ...… 260 The `TargetEncoding` template parameter specifies the encoding in the output stream.
|
D | faq.md | 205 2. Can it validate the encoding? 207 …Yes, just pass `kParseValidateEncodingFlag` to `Parse()`. If there is invalid encoding in the stre… 211 …JSON uses UTF-16 encoding when escaping unicode character, e.g. `\u5927` representing Chinese char… 221 …Yes, use `ASCII<>` as output encoding template parameter in `Writer` can enforce escaping those ch… 233 3. I don't know what encoding will the JSON be. How to handle them? 235 …You may use `AutoUTFInputStream` which detects the encoding of input stream automatically. However… 239 …er_mark) sometimes reside at the beginning of file/stream to indiciate the UTF encoding type of it.
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
D | SimpleCharStream.java | 309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 312 …this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dst… in SimpleCharStream() 321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 324 this(dstream, encoding, startline, startcolumn, 4096); in SimpleCharStream() 333 …public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEn… in SimpleCharStream() argument 335 this(dstream, encoding, 1, 1, 4096); in SimpleCharStream() 343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, in ReInit() argument 346 …ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(d… in ReInit() 355 …public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodin… in ReInit() argument 357 ReInit(dstream, encoding, 1, 1, 4096); in ReInit() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/ |
D | SimpleCharStream.java | 309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 312 …this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dst… in SimpleCharStream() 321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 324 this(dstream, encoding, startline, startcolumn, 4096); in SimpleCharStream() 333 …public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEn… in SimpleCharStream() argument 335 this(dstream, encoding, 1, 1, 4096); in SimpleCharStream() 343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, in ReInit() argument 346 …ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(d… in ReInit() 355 …public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodin… in ReInit() argument 357 ReInit(dstream, encoding, 1, 1, 4096); in ReInit() [all …]
|
D | DateTimeParser.java | 431 public DateTimeParser(java.io.InputStream stream, String encoding) { in DateTimeParser() argument 432 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in DateTimeParser() 443 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument 444 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
|
/packages/services/Telephony/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | SimpleCharStream.java | 309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 312 …this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dst… in SimpleCharStream() 321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 324 this(dstream, encoding, startline, startcolumn, 4096); in SimpleCharStream() 333 …public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEn… in SimpleCharStream() argument 335 this(dstream, encoding, 1, 1, 4096); in SimpleCharStream() 343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, in ReInit() argument 346 …ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(d… in ReInit() 355 …public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodin… in ReInit() argument 357 ReInit(dstream, encoding, 1, 1, 4096); in ReInit() [all …]
|
D | ContentTypeParser.java | 132 public ContentTypeParser(java.io.InputStream stream, String encoding) { in ContentTypeParser() argument 133 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in ContentTypeParser() 144 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument 145 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | SimpleCharStream.java | 309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 312 …this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dst… in SimpleCharStream() 321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 324 this(dstream, encoding, startline, startcolumn, 4096); in SimpleCharStream() 333 …public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEn… in SimpleCharStream() argument 335 this(dstream, encoding, 1, 1, 4096); in SimpleCharStream() 343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, in ReInit() argument 346 …ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(d… in ReInit() 355 …public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodin… in ReInit() argument 357 ReInit(dstream, encoding, 1, 1, 4096); in ReInit() [all …]
|
D | ContentTypeParser.java | 132 public ContentTypeParser(java.io.InputStream stream, String encoding) { in ContentTypeParser() argument 133 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in ContentTypeParser() 144 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument 145 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
|
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/ |
D | SimpleCharStream.java | 309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 312 …this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dst… in SimpleCharStream() 321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 324 this(dstream, encoding, startline, startcolumn, 4096); in SimpleCharStream() 333 …public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEn… in SimpleCharStream() argument 335 this(dstream, encoding, 1, 1, 4096); in SimpleCharStream() 343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, in ReInit() argument 346 …ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(d… in ReInit() 355 …public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodin… in ReInit() argument 357 ReInit(dstream, encoding, 1, 1, 4096); in ReInit() [all …]
|
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/parser/ |
D | SimpleCharStream.java | 309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 312 …this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dst… in SimpleCharStream() 321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, in SimpleCharStream() argument 324 this(dstream, encoding, startline, startcolumn, 4096); in SimpleCharStream() 333 …public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEn… in SimpleCharStream() argument 335 this(dstream, encoding, 1, 1, 4096); in SimpleCharStream() 343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, in ReInit() argument 346 …ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(d… in ReInit() 355 …public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodin… in ReInit() argument 357 ReInit(dstream, encoding, 1, 1, 4096); in ReInit() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
D | ContentTransferEncodingField.java | 52 private String encoding; field in ContentTransferEncodingField 54 protected ContentTransferEncodingField(String name, String body, String raw, String encoding) { in ContentTransferEncodingField() argument 56 this.encoding = encoding; in ContentTransferEncodingField() 65 return encoding; in getEncoding() 84 final String encoding = body.trim().toLowerCase(); in parse() local 85 return new ContentTransferEncodingField(name, body, raw, encoding); in parse()
|
/packages/services/Telephony/src/org/apache/james/mime4j/field/ |
D | ContentTransferEncodingField.java | 52 private String encoding; field in ContentTransferEncodingField 54 protected ContentTransferEncodingField(String name, String body, String raw, String encoding) { in ContentTransferEncodingField() argument 56 this.encoding = encoding; in ContentTransferEncodingField() 65 return encoding; in getEncoding() 84 final String encoding = body.trim().toLowerCase(); in parse() local 85 return new ContentTransferEncodingField(name, body, raw, encoding); in parse()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapSmsPdu.java | 95 SmsPdu(byte[]data, int encoding, int type, int languageTable){ in SmsPdu() argument 97 this.mEncoding = encoding; in SmsPdu() 107 public void setEncoding(int encoding) { in setEncoding() argument 108 this.mEncoding = encoding; in setEncoding() 491 int encoding; in getSubmitPdus() local 501 encoding = ted.codeUnitSize; in getSubmitPdus() 511 newPdu = new SmsPdu(data, encoding, phoneType, languageTable); in getSubmitPdus() 538 if (encoding == SmsConstants.ENCODING_7BIT) { in getSubmitPdus() 546 encoding, languageTable, languageShiftTable).encodedMessage; in getSubmitPdus() 551 if (encoding == SmsConstants.ENCODING_7BIT) { in getSubmitPdus() [all …]
|
D | BluetoothMapbMessageMime.java | 155 private String encoding = null; field in BluetoothMapbMessageMime 452 encoding = "8BIT"; // The encoding used in encodeMime() 570 encoding = headerValue; in parseMimeHeaders() 581 String partEncoding = encoding; /* Use the overall encoding as default */ in parseMimePart() 653 newPart.mData = decodeBody(body, encoding, mCharset); in parseMimeBody() 656 private byte[] decodeBody(String body, String encoding, String charset) { in decodeBody() argument 657 if(encoding != null && encoding.toUpperCase().contains("BASE64")) { in decodeBody() 659 } else if(encoding != null && encoding.toUpperCase().contains("QUOTED-PRINTABLE")) { in decodeBody()
|
D | BluetoothMapUtils.java | 437 String encoding; in stripEncoding() local 445 encoding = m.group(2); in stripEncoding() 447 Log.v(TAG, "Matching:" + match +"\nCharset: "+charset +"\nEncoding : " +encoding in stripEncoding() 449 if(encoding.equalsIgnoreCase("Q")){ in stripEncoding() 454 }else if(encoding.equalsIgnoreCase("B")){ in stripEncoding() 469 Log.e(TAG, "stripEncoding: Hit unknown encoding: "+encoding); in stripEncoding()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/exchange/ |
D | ExchangeAttachment.java | 26 public String encoding; field in ExchangeAttachment 36 encoding = in.readString(); in ExchangeAttachment() 53 dest.writeString(encoding); in writeToParcel()
|