javax.imageio.stream
Class FileImageInputStream
java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.FileImageInputStream
- All Implemented Interfaces:
- DataInput, ImageInputStream
public class FileImageInputStream
- extends ImageInputStreamImpl
Method Summary |
void |
close()
|
long |
length()
|
int |
read()
|
int |
read(byte[] data,
int offset,
int len)
|
void |
seek(long position)
|
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl |
checkClosed, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, setBitOffset, setByteOrder, skipBytes, skipBytes |
FileImageInputStream
public FileImageInputStream(File file)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
FileImageInputStream
public FileImageInputStream(RandomAccessFile file)
close
public void close()
throws IOException
- Specified by:
close
in interface ImageInputStream
- Overrides:
close
in class ImageInputStreamImpl
- Throws:
IOException
length
public long length()
- Specified by:
length
in interface ImageInputStream
- Overrides:
length
in class ImageInputStreamImpl
read
public int read()
throws IOException
- Specified by:
read
in interface ImageInputStream
- Specified by:
read
in class ImageInputStreamImpl
- Throws:
IOException
read
public int read(byte[] data,
int offset,
int len)
throws IOException
- Specified by:
read
in interface ImageInputStream
- Specified by:
read
in class ImageInputStreamImpl
- Throws:
IOException
seek
public void seek(long position)
throws IOException
- Specified by:
seek
in interface ImageInputStream
- Overrides:
seek
in class ImageInputStreamImpl
- Throws:
IOException