Searched refs:stream (Results 1 - 25 of 29) sorted by relevance

12

/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/decoder/
H A DQuotedPrintableInputStream.java31 * Performs Quoted-Printable decoding on an underlying stream.
40 private InputStream stream; field in class:QuotedPrintableInputStream
45 public QuotedPrintableInputStream(InputStream stream) { argument
46 this.stream = stream;
50 * Closes the underlying stream.
55 stream.close();
72 * Pulls bytes out of the underlying stream and places them in the
74 * underlying stream directly) to detect and filter out "transport
78 * @throws IOException Underlying stream thre
[all...]
/packages/apps/Email/emailcommon/src/org/apache/commons/io/output/
H A DDemuxOutputStream.java23 * Data written to this stream is forwarded to a stream that has been associated
35 * Bind the specified stream to the current thread.
37 * @param output the stream to bind
42 OutputStream stream = getStream();
44 return stream;
48 * Closes stream associated with current thread.
64 * Flushes stream associated with current thread.
80 * Writes byte to stream associated with current thread.
82 * @param ch the byte to write to stream
[all...]
H A DFileWriterWithEncoding.java230 OutputStream stream = null;
233 stream = new FileOutputStream(file, append);
235 writer = new OutputStreamWriter(stream, (Charset)encoding);
237 writer = new OutputStreamWriter(stream, (CharsetEncoder)encoding);
239 writer = new OutputStreamWriter(stream, (String)encoding);
243 IOUtils.closeQuietly(stream);
250 IOUtils.closeQuietly(stream);
310 * Flush the stream.
318 * Close the stream.
H A DLockableFileWriter.java232 OutputStream stream = null;
238 stream = new FileOutputStream(file.getAbsolutePath(), append);
239 writer = new OutputStreamWriter(stream, encoding);
243 IOUtils.closeQuietly(stream);
251 IOUtils.closeQuietly(stream);
326 * Flush the stream.
/packages/apps/Email/emailcommon/src/org/apache/commons/io/
H A DHexDump.java48 * @param stream the OutputStream to which the data is to be
53 * the data to stream
56 * @throws IllegalArgumentException if the output stream is null
60 OutputStream stream, int index)
69 if (stream == null) {
98 stream.write(buffer.toString().getBytes());
99 stream.flush();
59 dump(byte[] data, long offset, OutputStream stream, int index) argument
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java129 public ContentTypeParser(java.io.InputStream stream) { argument
130 this(stream, null);
132 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); }
141 public void ReInit(java.io.InputStream stream) { argument
142 ReInit(stream, null);
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); }
153 public ContentTypeParser(java.io.Reader stream) { argument
154 jj_input_stream = new SimpleCharStream(stream,
162 ReInit(java.io.Reader stream) argument
[all...]
H A DContentTypeParserTokenManager.java635 public ContentTypeParserTokenManager(SimpleCharStream stream){ argument
638 input_stream = stream;
640 public ContentTypeParserTokenManager(SimpleCharStream stream, int lexState){ argument
641 this(stream);
644 public void ReInit(SimpleCharStream stream) argument
648 input_stream = stream;
658 public void ReInit(SimpleCharStream stream, int lexState) argument
660 ReInit(stream);
/packages/apps/Browser/src/com/android/browser/homepages/
H A DTemplate.java52 void write(OutputStream stream, EntityData params) throws IOException; argument
56 void writeValue(OutputStream stream, String key) throws IOException; argument
74 public void write(OutputStream stream, EntityData params) throws IOException { argument
75 stream.write(mValue);
89 public void write(OutputStream stream, EntityData params) throws IOException { argument
90 params.writeValue(stream, mKey);
106 public void write(OutputStream stream, EntityData params) throws IOException { argument
110 mSubTemplate.write(stream, iter);
159 public void writeValue(OutputStream stream, String key) throws IOException { argument
160 stream
226 write(OutputStream stream) argument
230 write(OutputStream stream, EntityData data) argument
[all...]
H A DRequestHandler.java95 public void writeValue(OutputStream stream, String key) throws IOException {
98 stream.write(htmlEncode(cursor.getString(0)));
100 stream.write(htmlEncode(cursor.getString(1)));
102 stream.write("data:image/png;base64,".getBytes());
104 stream.write(Base64.encode(thumb, Base64.DEFAULT));
/packages/apps/Email/src/com/android/email/mail/store/imap/
H A DImapTempFileLiteral.java46 /* package */ ImapTempFileLiteral(FixedLengthInputStream stream) throws IOException { argument
47 mSize = stream.getLength();
55 IOUtils.copy(stream, out);
82 // Return 0 byte stream as a dummy...
/packages/apps/Camera/tests/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java76 BufferedInputStream stream = null;
94 stream = new BufferedInputStream(new FileInputStream(file));
95 stream.read(jpegData);
97 if (stream != null) stream.close();
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java428 public DateTimeParser(java.io.InputStream stream) { argument
429 this(stream, null);
431 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); }
440 public void ReInit(java.io.InputStream stream) { argument
441 ReInit(stream, null);
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); }
452 public DateTimeParser(java.io.Reader stream) { argument
453 jj_input_stream = new SimpleCharStream(stream,
461 ReInit(java.io.Reader stream) argument
[all...]
H A DDateTimeParserTokenManager.java674 public DateTimeParserTokenManager(SimpleCharStream stream){ argument
677 input_stream = stream;
679 public DateTimeParserTokenManager(SimpleCharStream stream, int lexState){ argument
680 this(stream);
683 public void ReInit(SimpleCharStream stream) argument
687 input_stream = stream;
697 public void ReInit(SimpleCharStream stream, int lexState) argument
699 ReInit(stream);
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DAbstractPublicApiTest.java88 InputStream stream = new FileInputStream(downloadedFile.getFileDescriptor());
90 return readStream(stream);
92 stream.close();
H A DPublicApiFunctionalTest.java310 InputStream stream = new FileInputStream(destination.getPath());
312 assertEquals(FILE_CONTENT, readStream(stream));
314 stream.close();
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppLauncherActivity.java79 Uri stream = (Uri)intent.getParcelableExtra(Intent.EXTRA_STREAM);
86 if (stream != null && type != null) {
87 if (V) Log.v(TAG, "Get ACTION_SEND intent: Uri = " + stream + "; mimetype = "
89 // Save type/stream, will be used when adding transfer
92 stream.toString());
H A DTestActivity.java110 Uri stream = (Uri)intent.getParcelableExtra(Intent.EXTRA_STREAM);
112 if (stream != null && type != null) {
116 * addAttachment(stream);
118 Log.v(Constants.TAG, " Get share intent with Uri " + stream + " mimetype is "
121 // stream.getAuthority() + " " + Uri.parse(stream));
122 Cursor cursor = c.getContentResolver().query(stream, null, null, null, null);
129 * values.put(BluetoothShare.URI, stream.toString());
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DPackageIconLoader.java155 InputStream stream = mPackageContext.getContentResolver().openInputStream(uri);
156 if (stream == null) {
160 return Drawable.createFromStream(stream, null);
163 stream.close();
165 Log.e(TAG, "Error closing icon stream for " + uri, ex);
/packages/apps/Browser/src/com/android/browser/
H A DSnapshotTab.java192 GZIPInputStream stream = new GZIPInputStream(bis);
193 web.loadViewState(stream);
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/parser/
H A DAddressListParserTokenManager.java749 public AddressListParserTokenManager(SimpleCharStream stream){ argument
752 input_stream = stream;
754 public AddressListParserTokenManager(SimpleCharStream stream, int lexState){ argument
755 this(stream);
758 public void ReInit(SimpleCharStream stream) argument
762 input_stream = stream;
772 public void ReInit(SimpleCharStream stream, int lexState) argument
774 ReInit(stream);
H A DAddressListParser.java724 public AddressListParser(java.io.InputStream stream) { argument
725 this(stream, null);
727 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); }
737 public void ReInit(java.io.InputStream stream) { argument
738 ReInit(stream, null);
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); }
751 public AddressListParser(java.io.Reader stream) { argument
752 jj_input_stream = new SimpleCharStream(stream,
761 ReInit(java.io.Reader stream) argument
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DFingerprint.java44 // Hard coded stream id length limit is 40-chars. Don't ask!
81 * Note that this will close() stream after calculating the digest.
85 public static Fingerprint fromInputStream(InputStream stream, long[] byteCount) argument
90 in = new DigestInputStream(stream, DIGESTER);
106 * Decodes a string stream id to a 128-bit fingerprint.
129 * @param streamIdList list of stream id's to be scanned
142 * Encodes a 128-bit fingerprint as a string stream id.
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DAttachPhotoActivity.java158 ByteArrayOutputStream stream = new ByteArrayOutputStream();
159 photo.compress(Bitmap.CompressFormat.JPEG, 75, stream);
162 imageValues.put(Photo.PHOTO, stream.toByteArray());
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
H A DBitmapUtils.java96 private void closeStream(Closeable stream) { argument
97 if (stream != null) {
99 stream.close();
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DRfc822Output.java175 * Write the entire message to an output stream. This method provides buffering, so it is
176 * not necessary to pass in a buffered output stream here.
180 * @param out the output stream to write the message to
191 OutputStream stream = new BufferedOutputStream(out, 1024);
192 Writer writer = new OutputStreamWriter(stream);
231 writeTextWithHeaders(writer, stream, bodyText);
255 writeTextWithHeaders(writer, stream, bodyText);
263 writeOneAttachment(context, writer, stream, attachment);
299 // Set up input stream and write it out via base64
310 // switch to output stream fo
[all...]

Completed in 582 milliseconds

12