Searched refs:encoding (Results 1 - 25 of 26) sorted by relevance

12

/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/apps/UnifiedEmail/src/org/apache/commons/io/
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);
318 toCharArray(InputStream is, String encoding) argument
379 toString(InputStream input, String encoding) argument
431 toString(byte[] input, String encoding) argument
477 readLines(InputStream input, String encoding) argument
573 lineIterator(InputStream input, String encoding) argument
611 toInputStream(String input, String encoding) argument
671 write(byte[] data, Writer output, String encoding) argument
740 write(char[] data, OutputStream output, String encoding) argument
804 write(String data, OutputStream output, String encoding) argument
869 write(StringBuffer data, OutputStream output, String encoding) argument
927 writeLines(Collection<Object> lines, String lineEnding, OutputStream output, String encoding) argument
1072 copy(InputStream input, Writer output, String encoding) argument
1186 copy(Reader input, OutputStream output, String encoding) argument
[all...]
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
148 * The platform's default encoding is used for the byte-to-char conversion.
162 * <code>Writer</code>, using the specified encoding.
165 * @param encoding The name of a supported character encoding. See the
167 * Charset Registry</a> for a list of valid encoding types.
173 String encoding)
176 copy(in, output, encoding);
170 copy( byte[] input, Writer output, String encoding) argument
261 copy( InputStream input, Writer 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/Exchange/tests/src/com/android/exchange/utility/
H A DWbxmlResponseLoggerTests.java49 final String encoding = "US-ASCII";
50 final BasicHeader header = new BasicHeader("content-encoding", encoding);
52 assertEquals(true, encoding.equals(outputEncoding));
56 final String encoding = "UTF-8";
58 assertEquals(true, encoding.equals(outputEncoding));
62 final String encoding = "UTF-8";
63 final BasicHeader header = new BasicHeader("content-encoding", null);
65 assertEquals(true, encoding.equals(outputEncoding));
/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/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 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 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); }
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/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 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); }
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapSmsPdu.java70 private int encoding; field in class:BluetoothMapSmsPdu.SmsPdu
81 this.encoding = INVALID_VALUE;
91 * @param encoding
95 SmsPdu(byte[]data, int encoding, int type, int languageTable){ argument
97 this.encoding = encoding;
107 public void setEncoding(int encoding) { argument
108 this.encoding = encoding;
111 return encoding;
[all...]
H A DBluetoothMapbMessageSms.java34 this.encoding = smsBodyPdus.get(0).getEncodingString();
44 this.encoding = null;
H A DBluetoothMapbMessageMmsEmail.java110 private String encoding = null; field in class:BluetoothMapbMessageMmsEmail
267 * where possible, but the RFCs states to use US-ASCII for the headers - hence encoding
269 * use any encoding... */
296 * We need to add the address encoding in encodeHeaderAddresses, but it is not
306 // Use base64 encoding for the subject, as it may contain non US-ASCII characters or other
345 * 7-bit encoding. According the the MAP specification only 8-bit encoding is
359 * get message to include attachments, but since only 8-bit encoding is allowed,
363 * UPDATE: Errata 4176 allows the needed encoding typed inside the <bmessage-body-content>
367 * to use encoding scheme
554 decodeBody(String body, String encoding) argument
[all...]
H A DBluetoothMapbMessage.java54 protected String encoding = null; field in class:BluetoothMapbMessage
574 encoding = arg[1].trim(); // TODO: Validate ?
698 public void setEncoding(String encoding) { argument
699 this.encoding = encoding;
834 if(encoding != null && encoding != "")
835 sb.append("ENCODING:").append(encoding).append("\r\n");
/packages/apps/Exchange/src/com/android/exchange/utility/
H A DWbxmlResponseLogger.java87 // We need to figure out the encoding in the case that it is gzip and we need to
90 final String encoding = processContentEncoding(encodingHeader);
93 if (encoding.equals("gzip")) {
/packages/apps/Calendar/
H A Dmkprojectfile6 <?xml version="1.0" encoding="UTF-8"?>
/packages/apps/Exchange/src/com/android/exchange/
H A DEasResponse.java154 String encoding = ceHeader.getValue();
156 if (encoding.toLowerCase().equals("gzip")) {
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
H A DDecoderUtil.java101 * Decodes an encoded word encoded with the 'B' encoding (described in
117 * Decodes an encoded word encoded with the 'Q' encoding (described in
223 String encoding = body.substring(qm1 + 1, qm2);
253 if (encoding.equalsIgnoreCase("Q")) {
255 } else if (encoding.equalsIgnoreCase("B")) {
259 log.warn("Warning: Unknown encoding in encoded word '"
267 log.warn("Unsupported encoding in encoded word '"
/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/Launcher3/
H A Dprint_db.py178 out = codecs.open(INDEX_FILE, encoding="utf-8", mode="w")
/packages/apps/Email/src/com/android/email/mail/store/
H A DImapFolder.java790 * Removes any content transfer encoding from the stream and returns a Body.
892 body encoding
903 final ImapString encoding = bs.getStringOrEmpty(5);
998 if (!encoding.isEmpty()) {
1000 encoding.getString());

Completed in 3468 milliseconds

12