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

/packages/apps/Email/emailcommon/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
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 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 DFileUtils.java1094 * @param encoding the encoding to use, <code>null</code> means platform default
1097 * @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
1099 public static String readFileToString(File file, String encoding) throws IOException { argument
1103 return IOUtils.toString(in, encoding);
1111 * Reads the contents of a file into a String using the default encoding for the VM.
1147 * @param encoding the encoding to use, <code>null</code> means platform default
1150 * @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
1153 public static List<String> readLines(File file, String encoding) throw argument
1207 lineIterator(File file, String encoding) argument
1247 writeStringToFile(File file, String data, String encoding) argument
1304 writeLines(File file, String encoding, Collection<Object> lines) argument
1338 writeLines(File file, String encoding, Collection<Object> lines, String lineEnding) argument
[all...]
/packages/apps/Email/emailcommon/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/Email/emailcommon/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/Email/emailcommon/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/Email/emailcommon/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/Email/emailcommon/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/Email/emailcommon/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/Email/emailcommon/src/com/android/emailcommon/utility/
H A DUtility.java110 public final static String readInputStream(InputStream in, String encoding) throws IOException { argument
111 InputStreamReader reader = new InputStreamReader(in, encoding);

Completed in 463 milliseconds