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

Diff of /classpath/javax/imageio/stream/FileImageInputStream.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 FileImageInputStream  public class FileImageInputStream extends ImageInputStreamImpl
50  {  {
51    private RandomAccessFile file;    private RandomAccessFile file;
52        
# Line 84  public class FileImageInputStream Line 84  public class FileImageInputStream
84          return -1L;          return -1L;
85        }        }
86    }    }
87    
88      public int read()
89        throws IOException
90      {
91        setBitOffset(0);
92        return file.read();
93      }
94    
95      public int read(byte[] data, int offset, int len)
96        throws IOException
97      {
98        setBitOffset(0);
99        return file.read(data, offset, len);
100      }
101    
102      public void seek(long position)
103        throws IOException
104      {
105        super.seek(position);
106        file.seek(position);
107      }
108  }  }

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