it.geosolutions.imageio.plugins.nitronitf
Class IOFileInputStream

java.lang.Object
  extended by nitf.NITFObject
      extended by nitf.DestructibleObject
          extended by nitf.IOInterface
              extended by 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

Field Summary
 
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
 
Constructor Summary
IOFileInputStream(FileImageInputStreamExt stream)
           
 
Method Summary
 boolean canSeek()
           
 void close()
           
 int getMode()
           
 long getSize()
           
 void read(byte[] buf)
           
 void read(byte[] buf, int size)
           
 byte[] read(int size)
           
 long seek(long offset, int whence)
           
 long tell()
           
 void write(byte[] buf, int size)
           
 
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
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOFileInputStream

public IOFileInputStream(FileImageInputStreamExt stream)
Method Detail

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–2013 GeoSolutions. All rights reserved.