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);
}
}
Aggregations