Searched defs:encoding (Results 1 - 25 of 27) sorted by relevance

12

/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DCopyUtils.java47 * For byte-to-char methods, a <code>copy</code> variant allows the encoding
49 * encourage you to always specify the encoding because relying on the platform
100 * method variants to specify the encoding, each row may
149 * The platform's default encoding is used for the byte-to-char conversion.
163 * <code>Writer</code>, using the specified encoding.
166 * @param encoding The name of a supported character encoding. See the
168 * Charset Registry</a> for a list of valid encoding types.
174 String encoding)
177 copy(in, output, encoding);
171 copy( byte[] input, Writer output, String encoding) argument
262 copy( InputStream input, Writer output, String encoding) argument
[all...]
H A DIOUtils.java54 * encoding and the other which allows you to specify an encoding. You are
55 * encouraged to always specify an encoding because relying on the platform
224 * using the default character encoding of the platform.
242 * using the specified character encoding.
244 * Character encoding names can be found at
251 * @param encoding the encoding to use, null means platform default
257 public static byte[] toByteArray(Reader input, String encoding) argument
260 copy(input, output, encoding);
319 toCharArray(InputStream is, String encoding) argument
380 toString(InputStream input, String encoding) argument
434 toString(byte[] input, String encoding) argument
480 readLines(InputStream input, String encoding) argument
576 lineIterator(InputStream input, String encoding) argument
614 toInputStream(String input, String encoding) argument
674 write(byte[] data, Writer output, String encoding) argument
743 write(char[] data, OutputStream output, String encoding) argument
807 write(String data, OutputStream output, String encoding) argument
872 write(StringBuffer data, OutputStream output, String encoding) argument
930 writeLines(Collection<Object> lines, String lineEnding, OutputStream output, String encoding) argument
1075 copy(InputStream input, Writer output, String encoding) argument
1189 copy(Reader input, OutputStream output, String encoding) argument
[all...]
H A DFileUtils.java1098 * @param encoding the encoding to use, <code>null</code> means platform default
1101 * @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
1103 public static String readFileToString(File file, String encoding) throws IOException { argument
1107 return IOUtils.toString(in, encoding);
1115 * Reads the contents of a file into a String using the default encoding for the VM.
1151 * @param encoding the encoding to use, <code>null</code> means platform default
1154 * @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
1157 public static List<String> readLines(File file, String encoding) throw argument
1211 lineIterator(File file, String encoding) argument
1251 writeStringToFile(File file, String data, String encoding) argument
1308 writeLines(File file, String encoding, Collection<Object> lines) argument
1342 writeLines(File file, String encoding, Collection<Object> lines, String lineEnding) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/exchange/
H A DExchangeAttachment.java26 public String encoding; field in class:ExchangeAttachment
36 encoding = in.readString();
53 dest.writeString(encoding);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
H A DFileWriterWithEncoding.java32 * Writer of files that allows the encoding to be set.
35 * that allows an encoding to be set. Unfortunately, it cannot subclass
40 * The encoding must be specified using either the name of the {@link Charset},
41 * the {@link Charset}, or a {@link CharsetEncoder}. If the default encoding
58 * Constructs a FileWriterWithEncoding with a file encoding.
61 * @param encoding the encoding to use, not null
62 * @throws NullPointerException if the file name or encoding is null
65 public FileWriterWithEncoding(String filename, String encoding) throws IOException { argument
66 this(new File(filename), encoding, fals
78 FileWriterWithEncoding(String filename, String encoding, boolean append) argument
90 FileWriterWithEncoding(String filename, Charset encoding) argument
103 FileWriterWithEncoding(String filename, Charset encoding, boolean append) argument
115 FileWriterWithEncoding(String filename, CharsetEncoder encoding) argument
128 FileWriterWithEncoding(String filename, CharsetEncoder encoding, boolean append) argument
140 FileWriterWithEncoding(File file, String encoding) argument
153 FileWriterWithEncoding(File file, String encoding, boolean append) argument
166 FileWriterWithEncoding(File file, Charset encoding) argument
179 FileWriterWithEncoding(File file, Charset encoding, boolean append) argument
192 FileWriterWithEncoding(File file, CharsetEncoder encoding) argument
205 FileWriterWithEncoding(File file, CharsetEncoder encoding, boolean append) argument
222 initWriter(File file, Object encoding, boolean append) argument
[all...]
H A DLockableFileWriter.java40 * The encoding may also be specified, and defaults to the platform default.
137 * Constructs a LockableFileWriter with a file encoding.
140 * @param encoding the encoding to use, null means platform default
144 public LockableFileWriter(File file, String encoding) throws IOException { argument
145 this(file, encoding, false, null);
149 * Constructs a LockableFileWriter with a file encoding.
152 * @param encoding the encoding to use, null means platform default
158 public LockableFileWriter(File file, String encoding, boolea argument
230 initWriter(File file, String encoding, boolean append) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/
H A DContentTransferEncodingField.java32 * The <code>7bit</code> encoding.
36 * The <code>8bit</code> encoding.
40 * The <code>binary</code> encoding.
44 * The <code>quoted-printable</code> encoding.
48 * The <code>base64</code> encoding.
52 private String encoding; field in class:ContentTransferEncodingField
54 protected ContentTransferEncodingField(String name, String body, String raw, String encoding) { argument
56 this.encoding = encoding;
60 * Gets the encoding define
[all...]
/packages/services/Telephony/src/org/apache/james/mime4j/field/
H A DContentTransferEncodingField.java32 * The <code>7bit</code> encoding.
36 * The <code>8bit</code> encoding.
40 * The <code>binary</code> encoding.
44 * The <code>quoted-printable</code> encoding.
48 * The <code>base64</code> encoding.
52 private String encoding; field in class:ContentTransferEncodingField
54 protected ContentTransferEncodingField(String name, String body, String raw, String encoding) { argument
56 this.encoding = encoding;
60 * Gets the encoding define
[all...]
/packages/services/Telephony/src/org/apache/commons/io/
H A DIOUtils.java53 * encoding and the other which allows you to specify an encoding. You are
54 * encouraged to always specify an encoding because relying on the platform
223 * using the default character encoding of the platform.
241 * using the specified character encoding.
243 * Character encoding names can be found at
250 * @param encoding the encoding to use, null means platform default
256 public static byte[] toByteArray(Reader input, String encoding) argument
259 copy(input, output, encoding);
318 toCharArray(InputStream is, String encoding) argument
379 toString(InputStream input, String encoding) argument
433 toString(byte[] input, String encoding) argument
479 readLines(InputStream input, String encoding) argument
539 toInputStream(String input, String encoding) argument
599 write(byte[] data, Writer output, String encoding) argument
668 write(char[] data, OutputStream output, String encoding) argument
732 write(String data, OutputStream output, String encoding) argument
797 write(StringBuffer data, OutputStream output, String encoding) argument
855 writeLines(Collection<Object> lines, String lineEnding, OutputStream output, String encoding) argument
1000 copy(InputStream input, Writer output, String encoding) argument
1114 copy(Reader input, OutputStream output, String encoding) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
H A DEncoderUtil.java34 * Static methods for encoding header field values. This includes encoded-words
84 /** The B encoding (identical to base64 defined in RFC 2045). */
86 /** The Q encoding (similar to quoted-printable defined in RFC 2045). */
191 * @return the specified text if encoding is not necessary or an encoded
254 * encoding to use for the encoded-word are detected automatically.
278 * encoding to use for the encoded-word are detected automatically.
312 * @param encoding
313 * the encoding to use for the encoded-word (either B or Q). A
314 * suitable encoding is automatically chosen if this parameter is
321 int usedCharacters, Charset charset, Encoding encoding) {
320 encodeEncodedWord(String text, Usage usage, int usedCharacters, Charset charset, Encoding encoding) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
H A DSimpleCharStream.java309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
312 this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize);
321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
324 this(dstream, encoding, startline, startcolumn, 4096);
333 public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException argument
335 this(dstream, encoding, 1, 1, 4096);
343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, argument
346 ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startlin
355 ReInit(java.io.InputStream dstream, String encoding) argument
364 ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) argument
[all...]
H A DAddressListParser.java727 public AddressListParser(java.io.InputStream stream, String encoding) { argument
728 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
740 public void ReInit(java.io.InputStream stream, String encoding) { argument
741 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java132 public ContentTypeParser(java.io.InputStream stream, String encoding) { argument
133 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
144 public void ReInit(java.io.InputStream stream, String encoding) { argument
145 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
H A DSimpleCharStream.java309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
312 this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize);
321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
324 this(dstream, encoding, startline, startcolumn, 4096);
333 public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException argument
335 this(dstream, encoding, 1, 1, 4096);
343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, argument
346 ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startlin
355 ReInit(java.io.InputStream dstream, String encoding) argument
364 ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java431 public DateTimeParser(java.io.InputStream stream, String encoding) { argument
432 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
443 public void ReInit(java.io.InputStream stream, String encoding) { argument
444 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
H A DSimpleCharStream.java309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
312 this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize);
321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
324 this(dstream, encoding, startline, startcolumn, 4096);
333 public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException argument
335 this(dstream, encoding, 1, 1, 4096);
343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, argument
346 ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startlin
355 ReInit(java.io.InputStream dstream, String encoding) argument
364 ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) argument
[all...]
/packages/services/Telephony/src/org/apache/james/mime4j/codec/
H A DEncoderUtil.java34 * Static methods for encoding header field values. This includes encoded-words
84 /** The B encoding (identical to base64 defined in RFC 2045). */
86 /** The Q encoding (similar to quoted-printable defined in RFC 2045). */
191 * @return the specified text if encoding is not necessary or an encoded
254 * encoding to use for the encoded-word are detected automatically.
278 * encoding to use for the encoded-word are detected automatically.
312 * @param encoding
313 * the encoding to use for the encoded-word (either B or Q). A
314 * suitable encoding is automatically chosen if this parameter is
321 int usedCharacters, Charset charset, Encoding encoding) {
320 encodeEncodedWord(String text, Usage usage, int usedCharacters, Charset charset, Encoding encoding) argument
[all...]
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/
H A DSimpleCharStream.java309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
312 this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize);
321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
324 this(dstream, encoding, startline, startcolumn, 4096);
333 public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException argument
335 this(dstream, encoding, 1, 1, 4096);
343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, argument
346 ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startlin
355 ReInit(java.io.InputStream dstream, String encoding) argument
364 ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) argument
[all...]
/packages/services/Telephony/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java132 public ContentTypeParser(java.io.InputStream stream, String encoding) { argument
133 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
144 public void ReInit(java.io.InputStream stream, String encoding) { argument
145 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
H A DSimpleCharStream.java309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
312 this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize);
321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
324 this(dstream, encoding, startline, startcolumn, 4096);
333 public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException argument
335 this(dstream, encoding, 1, 1, 4096);
343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, argument
346 ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startlin
355 ReInit(java.io.InputStream dstream, String encoding) argument
364 ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) argument
[all...]
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java431 public DateTimeParser(java.io.InputStream stream, String encoding) { argument
432 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
443 public void ReInit(java.io.InputStream stream, String encoding) { argument
444 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
H A DSimpleCharStream.java309 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
312 this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize);
321 public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, argument
324 this(dstream, encoding, startline, startcolumn, 4096);
333 public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException argument
335 this(dstream, encoding, 1, 1, 4096);
343 public void ReInit(java.io.InputStream dstream, String encoding, int startline, argument
346 ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startlin
355 ReInit(java.io.InputStream dstream, String encoding) argument
364 ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapSmsPdu.java91 * @param encoding
95 SmsPdu(byte[]data, int encoding, int type, int languageTable){ argument
97 this.mEncoding = encoding;
107 public void setEncoding(int encoding) { argument
108 this.mEncoding = encoding;
263 * just encoded using GSM encoding, or it is an actual GSM submit PDU embedded
320 // This part is only needed to extract the language info, hence only needed for 7 bit encoding
348 Log.v(TAG, "encoding:" + mEncoding);
393 * - Extract encoding details from the submit PDU
425 // Copy the pdu user data - keep in mind that the userDataLength is not the length in bytes for 7-bit encoding
[all...]
H A DBluetoothMapbMessage.java832 public void setEncoding(String encoding) { argument
833 this.mEncoding = encoding;
H A DBluetoothMapbMessageMime.java155 private String encoding = null; field in class:BluetoothMapbMessageMime
332 * where possible, but the RFCs states to use US-ASCII for the headers - hence encoding
334 * use any encoding... */
361 * We need to add the address encoding in encodeHeaderAddresses, but it is not
371 // Use base64 encoding for the subject, as it may contain non US-ASCII characters or
414 * 7-bit encoding. According the the MAP specification only 8-bit encoding is
428 * get message to include attachments, but since only 8-bit encoding is allowed,
432 * UPDATE: Errata 4176 allows the needed encoding typed inside the <bmessage-body-content>
436 * to use encoding scheme
656 decodeBody(String body, String encoding, String charset) argument
[all...]

Completed in 1440 milliseconds

12