Lines Matching refs:stream
26 package javax.imageio.stream;
33 import com.sun.imageio.stream.StreamCloser;
38 * cache data until it is flushed to the output stream.
43 private OutputStream stream;
52 /** The CloseAction that closes the stream in
67 * @param stream an <code>OutputStream</code> to write to.
72 * @exception IllegalArgumentException if <code>stream</code>
78 public FileCacheImageOutputStream(OutputStream stream, File cacheDir)
80 if (stream == null) {
81 throw new IllegalArgumentException("stream == null!");
86 this.stream = stream;
156 * Sets the current stream position and resets the bit offset to
238 stream.flush();
239 stream = null;
255 stream.write(buf, 0, len);
258 stream.flush();