Lines Matching refs:stream
137 * Create a new picture (already recorded) from the data in the stream. This
143 * <strong>Note:</strong> a picture created from an input stream cannot be
152 public static Picture createFromStream(InputStream stream) {
153 return new Picture(nativeCreateFromStream(stream, new byte[WORKING_STREAM_STORAGE]));
157 * Write the picture contents to a stream. The data can be used to recreate
159 * The resulting stream is NOT to be persisted across device restarts as
163 * <strong>Note:</strong> a picture created from an input stream cannot be
171 public void writeToStream(OutputStream stream) {
173 if (stream == null) {
176 if (!nativeWriteToStream(mNativePicture, stream,
184 private static native long nativeCreateFromStream(InputStream stream, byte[] storage);
191 OutputStream stream, byte[] storage);