Lines Matching refs:stream
114 * Create a new picture (already recorded) from the data in the stream. This
120 * <strong>Note:</strong> a picture created from an input stream cannot be
129 public static Picture createFromStream(InputStream stream) {
130 return new Picture(nativeCreateFromStream(stream, new byte[WORKING_STREAM_STORAGE]), true);
134 * Write the picture contents to a stream. The data can be used to recreate
136 * The resulting stream is NOT to be persisted across device restarts as
140 * <strong>Note:</strong> a picture created from an input stream cannot be
148 public void writeToStream(OutputStream stream) {
150 if (stream == null) {
153 if (!nativeWriteToStream(mNativePicture, stream,
181 private static native int nativeCreateFromStream(InputStream stream,
188 OutputStream stream, byte[] storage);