/[classpath]/classpath/javax/imageio/stream/FileImageOutputStream.java
ViewVC logotype

Diff of /classpath/javax/imageio/stream/FileImageOutputStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2.2.1 by gnu_andrew, Sat Jan 15 17:02:17 2005 UTC revision 1.2.2.2 by gnu_andrew, Sun Jan 16 15:15:13 2005 UTC
# Line 46  import java.io.RandomAccessFile; Line 46  import java.io.RandomAccessFile;
46  /**  /**
47   * @author Michael Koch (konqueror@gmx.de)   * @author Michael Koch (konqueror@gmx.de)
48   */   */
49  public class FileImageOutputStream  public class FileImageOutputStream extends ImageOutputStreamImpl
50  {  {
51    private RandomAccessFile file;    private RandomAccessFile file;
52        
# Line 87  public class FileImageOutputStream Line 87  public class FileImageOutputStream
87          return -1L;          return -1L;
88        }        }
89    }    }
90    
91      public int read()
92        throws IOException
93      {
94        checkClosed();
95        
96        setBitOffset(0);
97        return file.read();
98      }
99    
100      public int read(byte[] data, int offset, int len)
101        throws IOException
102      {
103        checkClosed();
104        
105        setBitOffset(0);
106        return file.read(data, offset, len);
107      }
108    
109      public void seek(long position)
110        throws IOException
111      {
112        super.seek(position);
113        file.seek(position);
114      }
115    
116      public void write(byte[] data, int offset, int len)
117        throws IOException
118      {
119        checkClosed();
120        
121        flushBits();
122        file.write(data, offset, len);
123      }
124    
125      public void write(int value)
126        throws IOException
127      {
128        checkClosed();
129        
130        // FIXME: Flush pending bits.
131        file.write(value);
132      }
133  }  }

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26