Search in sources :

Example 1 with Reader

use of nitf.Reader in project imageio-ext by geosolutions-it.

the class NITFReader method readHeader.

public synchronized void readHeader() throws IOException {
    if (reader != null)
        return;
    if (handle == null) {
        throw new IllegalStateException("No input handle");
    }
    try {
        reader = new Reader();
        record = reader.read(handle);
    } catch (NITFException e) {
        LOGGER.severe(e.getLocalizedMessage());
        throw new IIOException("NITF Exception", e);
    }
}
Also used : NITFException(nitf.NITFException) ImageReader(javax.imageio.ImageReader) Reader(nitf.Reader) IIOException(javax.imageio.IIOException)

Aggregations

IIOException (javax.imageio.IIOException)1 ImageReader (javax.imageio.ImageReader)1 NITFException (nitf.NITFException)1 Reader (nitf.Reader)1