Lines Matching refs:stream
25 * The picture's contents can also be written to a stream, and then later
107 * Create a new picture (already recorded) from the data in the stream. This
110 * <strong>Note:</strong> a picture created from an input stream cannot be
115 public static Picture createFromStream(InputStream stream) {
116 return new Picture(nativeCreateFromStream(stream, new byte[WORKING_STREAM_STORAGE]), true);
120 * Write the picture contents to a stream. The data can be used to recreate
123 * <strong>Note:</strong> a picture created from an input stream cannot be
128 public void writeToStream(OutputStream stream) {
130 if (stream == null) {
133 if (!nativeWriteToStream(mNativePicture, stream,
161 private static native int nativeCreateFromStream(InputStream stream,
168 OutputStream stream, byte[] storage);