private void parseColorGrayscaleSection(java.nio.ByteBuffer buffer) { buffer.position(this.componentLocationTable.getColorGrayscaleSectionSubheaderLocation()); this.numOfColorGrayscaleOffsetRecords = NITFSUtil.getByteAsShort(buffer); this.numOfColorConverterOffsetRecords = NITFSUtil.getByteAsShort(buffer); this.externalColorGrayscaleFilename = NITFSUtil.getString(buffer, 12); }
private void parseRPFColorOffsetRecord(java.nio.ByteBuffer buffer) { this.tableID = NITFSUtil.getUShort(buffer); this.numOfColorRecords = NITFSUtil.getUInt(buffer); this.colorElementLength = NITFSUtil.getByteAsShort(buffer); this.histogramRecordLength = NITFSUtil.getUShort(buffer); this.colorTableOffset = NITFSUtil.getUInt(buffer); this.histogramTableOffset = NITFSUtil.getUInt(buffer); }
public RPFHeaderSection(java.nio.ByteBuffer buffer) { this.endianIndicator = ((byte)0 != buffer.get()); // reads 1 byte, 0 for big endian this.headerLength = buffer.getShort(); // reads 2 bytes this.filename = NITFSUtil.getString(buffer, 12); this.updateIndicator = NITFSUtil.getByteAsShort(buffer); // reads 1 byte (short) this.govSpecNumber = NITFSUtil.getString(buffer, 15); this.govSpecDate = NITFSUtil.getString(buffer, 8); this.securityClass = NITFSUtil.getString(buffer, 1); this.securityCountryCode = NITFSUtil.getString(buffer, 2); this.securityReleaseMark = NITFSUtil.getString(buffer, 2); this.locationSectionLocation = buffer.getInt(); // read 4 bytes (int) }