it.geosolutions.imageio.plugins.nitronitf
Class IOFileInputStream
java.lang.Object
nitf.NITFObject
nitf.DestructibleObject
nitf.IOInterface
it.geosolutions.imageio.plugins.nitronitf.IOFileInputStream
public class IOFileInputStream
- extends nitf.IOInterface
implementation of the IOInterface, which allows to do buffered read operations on top of a FileInputStream.
- Author:
- Daniele Romagnoli, GeoSolutions SaS
Fields inherited from class nitf.IOInterface |
NITF_ACCESS_READONLY, NITF_ACCESS_READWRITE, NITF_ACCESS_WRITEONLY, SEEK_CUR, SEEK_END, SEEK_SET |
Fields inherited from class nitf.NITFObject |
address, INVALID_ADDRESS, NITF_LIBRARY_NAME |
Methods inherited from class nitf.IOInterface |
construct, getDestructor, seek, write |
Methods inherited from class nitf.DestructibleObject |
destruct, finalize, toString |
Methods inherited from class nitf.NITFObject |
equals, isValid |
IOFileInputStream
public IOFileInputStream(FileImageInputStreamExt stream)
read
public void read(byte[] buf)
throws nitf.NITFException
- Overrides:
read
in class nitf.IOInterface
- Throws:
nitf.NITFException
read
public byte[] read(int size)
throws nitf.NITFException
- Overrides:
read
in class nitf.IOInterface
- Throws:
nitf.NITFException
close
public void close()
throws nitf.NITFException
- Specified by:
close
in class nitf.IOInterface
- Throws:
nitf.NITFException
getSize
public long getSize()
throws nitf.NITFException
- Specified by:
getSize
in class nitf.IOInterface
- Throws:
nitf.NITFException
getMode
public int getMode()
throws nitf.NITFException
- Specified by:
getMode
in class nitf.IOInterface
- Throws:
nitf.NITFException
read
public void read(byte[] buf,
int size)
throws nitf.NITFException
- Specified by:
read
in class nitf.IOInterface
- Throws:
nitf.NITFException
canSeek
public boolean canSeek()
- Specified by:
canSeek
in class nitf.IOInterface
seek
public long seek(long offset,
int whence)
throws nitf.NITFException
- Specified by:
seek
in class nitf.IOInterface
- Throws:
nitf.NITFException
tell
public long tell()
throws nitf.NITFException
- Specified by:
tell
in class nitf.IOInterface
- Throws:
nitf.NITFException
write
public void write(byte[] buf,
int size)
throws nitf.NITFException
- Specified by:
write
in class nitf.IOInterface
- Throws:
nitf.NITFException
Copyright © 2006–2014 GeoSolutions. All rights reserved.