summaryrefslogtreecommitdiff
path: root/javax/imageio/stream/MemoryCacheImageOutputStream.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-12-07 15:03:51 +0000
committerMichael Koch <konqueror@gmx.de>2004-12-07 15:03:51 +0000
commit31b7d2370b837ec9354577144032ac1001d14ee1 (patch)
tree77e4d3de78b222d2aa1d4fd526d90f4f49daba44 /javax/imageio/stream/MemoryCacheImageOutputStream.java
parent04a9a265bd68c1f56ee39ce36aa1469f033a964e (diff)
downloadclasspath-31b7d2370b837ec9354577144032ac1001d14ee1.tar.gz
2004-12-07 Michael Koch <konqueror@gmx.de>
* javax/imageio/stream/FileCacheImageInputStream.java, javax/imageio/stream/FileCacheImageOutputStream.java, javax/imageio/stream/FileImageInputStream.java, javax/imageio/stream/ImageInputStreamImpl.java, javax/imageio/stream/ImageOutputStreamImpl.java, javax/imageio/stream/MemoryCacheImageInputStream.java, javax/imageio/stream/MemoryCacheImageOutputStream.java: Added all missing methods in javax.imageio.stream.
Diffstat (limited to 'javax/imageio/stream/MemoryCacheImageOutputStream.java')
-rw-r--r--javax/imageio/stream/MemoryCacheImageOutputStream.java54
1 files changed, 53 insertions, 1 deletions
diff --git a/javax/imageio/stream/MemoryCacheImageOutputStream.java b/javax/imageio/stream/MemoryCacheImageOutputStream.java
index b91fd6663..a21efae98 100644
--- a/javax/imageio/stream/MemoryCacheImageOutputStream.java
+++ b/javax/imageio/stream/MemoryCacheImageOutputStream.java
@@ -38,11 +38,35 @@ exception statement from your version. */
package javax.imageio.stream;
+import java.io.IOException;
+import java.io.OutputStream;
+
/**
* @author Michael Koch (konqueror@gmx.de)
*/
-public class MemoryCacheImageOutputStream
+public class MemoryCacheImageOutputStream extends ImageOutputStreamImpl
{
+ private OutputStream stream;
+
+ public MemoryCacheImageOutputStream(OutputStream stream)
+ {
+ this.stream = stream;
+ }
+
+ public void close()
+ throws IOException
+ {
+ super.close();
+ stream.close();
+ }
+
+ public void flushBefore(long position)
+ throws IOException
+ {
+ // FIXME: Implement me.
+ throw new Error("not implemented");
+ }
+
public boolean isCached()
{
return true;
@@ -57,4 +81,32 @@ public class MemoryCacheImageOutputStream
{
return true;
}
+
+ public int read()
+ throws IOException
+ {
+ // FIXME: Implement me.
+ throw new Error("not implemented");
+ }
+
+ public int read (byte[] data, int offset, int len)
+ throws IOException
+ {
+ // FIXME: Implement me.
+ throw new Error("not implemented");
+ }
+
+ public void write(byte[] data, int offset, int len)
+ throws IOException
+ {
+ // FIXME: Flush pending bits.
+ stream.write(data, offset, len);
+ }
+
+ public void write(int value)
+ throws IOException
+ {
+ // FIXME: Flush pending bits.
+ stream.write(value);
+ }
}