it.geosolutions.imageio.plugins.nitronitf
Class IOFileInputStream

Object
  extended by NITFObject
      extended by DestructibleObject
          extended by IOInterface
              extended by IOFileInputStream

public class IOFileInputStream
extends 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 IOInterface
NITF_ACCESS_READONLY, NITF_ACCESS_READWRITE, NITF_ACCESS_WRITEONLY, SEEK_CUR, SEEK_END, SEEK_SET
 
Fields inherited from class 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 IOInterface
construct, getDestructor, seek, write
 
Methods inherited from class DestructibleObject
destruct, finalize, toString
 
Methods inherited from class NITFObject
equals, isValid
 
Methods inherited from class 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 NITFException
Overrides:
read in class IOInterface
Throws:
NITFException

read

public byte[] read(int size)
            throws NITFException
Overrides:
read in class IOInterface
Throws:
NITFException

close

public void close()
           throws NITFException
Specified by:
close in class IOInterface
Throws:
NITFException

getSize

public long getSize()
             throws NITFException
Specified by:
getSize in class IOInterface
Throws:
NITFException

getMode

public int getMode()
            throws NITFException
Specified by:
getMode in class IOInterface
Throws:
NITFException

read

public void read(byte[] buf,
                 int size)
          throws NITFException
Specified by:
read in class IOInterface
Throws:
NITFException

canSeek

public boolean canSeek()
Specified by:
canSeek in class IOInterface

seek

public long seek(long offset,
                 int whence)
          throws NITFException
Specified by:
seek in class IOInterface
Throws:
NITFException

tell

public long tell()
          throws NITFException
Specified by:
tell in class IOInterface
Throws:
NITFException

write

public void write(byte[] buf,
                  int size)
           throws NITFException
Specified by:
write in class IOInterface
Throws:
NITFException


Copyright © 2006-2013 GeoSolutions. All Rights Reserved.