private long readOffset(final ImageInputStream input) throws IOException { return longOffsets ? input.readLong() : input.readUnsignedInt(); }
private long readEntryCount(final ImageInputStream pInput) throws IOException { return longOffsets ? pInput.readLong() : pInput.readUnsignedShort(); }
private int readValueCount(final ImageInputStream pInput) throws IOException { return assertIntCount(longOffsets ? pInput.readLong() : pInput.readUnsignedInt()); }
private boolean isPNG(final DirectoryEntry pEntry) throws IOException { long magic; imageInput.seek(pEntry.getOffset()); imageInput.setByteOrder(ByteOrder.BIG_ENDIAN); try { magic = imageInput.readLong(); } finally { imageInput.setByteOrder(ByteOrder.LITTLE_ENDIAN); } return magic == DIB.PNG_MAGIC; }
public long readLong() throws IOException { return iis.readLong(); }
public long readLong() throws IOException { return iis.readLong(); }
public long readLong() throws IOException { return source.readLong(); }
public long readLong() throws IOException { return source.readLong(); }
public long readLong() throws IOException { return iis.readLong(); }
private long readOffset(final ImageInputStream input) throws IOException { return longOffsets ? input.readLong() : input.readUnsignedInt(); }
public long readB8() throws IOException, IllegalCeosFormatException { final long streamPosition = _stream.getStreamPosition(); try { return _stream.readLong(); } catch (IOException e) { final String message = String.format(org.esa.beam.dataio.ceos.CeosFileReader.EM_READING_X_TYPE, new Object[]{"B8"}); throw new IllegalCeosFormatException(message, streamPosition, e); } }
public long readB8() throws IOException, IllegalBinaryFormatException { final long streamPosition = stream.getStreamPosition(); try { return stream.readLong(); } catch (IOException e) { final String message = String.format(EM_READING_X_TYPE, new Object[]{"B8"}); throw new IllegalBinaryFormatException(message, streamPosition, e); } }
private int readValueCount(final ImageInputStream pInput) throws IOException { return assertIntCount(longOffsets ? pInput.readLong() : pInput.readUnsignedInt()); }
public long getAsLong8(final int index) { checkIndex(index); long val; try { stream.mark(); stream.seek(startPosition + index * size); val = stream.readLong(); stream.reset(); } catch (IOException e) { throw new RuntimeException(e); } return val; }
private boolean isPNG(final DirectoryEntry pEntry) throws IOException { long magic; imageInput.seek(pEntry.getOffset()); imageInput.setByteOrder(ByteOrder.BIG_ENDIAN); try { magic = imageInput.readLong(); } finally { imageInput.setByteOrder(ByteOrder.LITTLE_ENDIAN); } return magic == DIB.PNG_MAGIC; }
private boolean isPNG(final DirectoryEntry pEntry) throws IOException { long magic; imageInput.seek(pEntry.getOffset()); imageInput.setByteOrder(ByteOrder.BIG_ENDIAN); try { magic = imageInput.readLong(); } finally { imageInput.setByteOrder(ByteOrder.LITTLE_ENDIAN); } return magic == DIB.PNG_MAGIC; }