public J2KMetadata(ImageInputStream iis, J2KImageReader reader) throws IOException { this(); RandomAccessIO in = new IISRandomAccessIO(iis); iis.mark(); // **** File Format **** // If the codestream is wrapped in the jp2 fileformat, Read the // file format wrapper FileFormatReader ff = new FileFormatReader(in, this); ff.readFileFormat(); iis.reset(); }
try { iis.mark(); in = new IISRandomAccessIO(iis);