Index: javax/imageio/stream/FileImageOutputStream.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/imageio/stream/FileImageOutputStream.java,v retrieving revision 1.1 diff -u -r1.1 FileImageOutputStream.java --- javax/imageio/stream/FileImageOutputStream.java 20 Oct 2004 08:40:25 -0000 1.1 +++ javax/imageio/stream/FileImageOutputStream.java 7 Dec 2004 17:22:29 -0000 @@ -46,7 +46,7 @@ /** * @author Michael Koch (address@hidden) */ -public class FileImageOutputStream +public class FileImageOutputStream extends ImageOutputStreamImpl { private RandomAccessFile file; @@ -87,4 +87,47 @@ return -1L; } } + + public int read() + throws IOException + { + checkClosed(); + + setBitOffset(0); + return file.read(); + } + + public int read(byte[] data, int offset, int len) + throws IOException + { + checkClosed(); + + setBitOffset(0); + return file.read(data, offset, len); + } + + public void seek(long position) + throws IOException + { + super.seek(position); + file.seek(position); + } + + public void write(byte[] data, int offset, int len) + throws IOException + { + checkClosed(); + + flushBits(); + file.write(data, offset, len); + } + + public void write(int value) + throws IOException + { + checkClosed(); + + // FIXME: Flush pending bits. + file.write(value); + } }