public DataSpaceVersionInfo(LittleEndianInput is) { featureIdentifier = readUnicodeLPP4(is); readerVersionMajor = is.readShort(); readerVersionMinor = is.readShort(); updaterVersionMajor = is.readShort(); updaterVersionMinor = is.readShort(); writerVersionMajor = is.readShort(); writerVersionMinor = is.readShort(); }
public TransformInfoHeader(LittleEndianInput is) { /* int length = */ is.readInt(); transformType = is.readInt(); transformerId = readUnicodeLPP4(is); transformerName = readUnicodeLPP4(is); readerVersionMajor = is.readShort(); readerVersionMinor = is.readShort(); updaterVersionMajor = is.readShort(); updaterVersionMinor = is.readShort(); writerVersionMajor = is.readShort(); writerVersionMinor = is.readShort(); }
public FtCfSubRecord(LittleEndianInput in, int size) { if (size != length) { throw new RecordFormatException("Unexpected size (" + size + ")"); } flags = in.readShort(); }
/** * Reads a 16 bit, signed value */ @Override public short readShort() { checkRecordPosition(LittleEndianConsts.SHORT_SIZE); _currentDataOffset += LittleEndianConsts.SHORT_SIZE; return _dataInput.readShort(); }
public FtPioGrbitSubRecord(LittleEndianInput in, int size) { if (size != length) { throw new RecordFormatException("Unexpected size (" + size + ")"); } flags = in.readShort(); }
/** Creates new NamePtg */ public NamePtg(LittleEndianInput in) { field_1_label_index = in.readUShort(); field_2_zero = in.readShort(); }
public Area3DPtg(LittleEndianInput in) { field_1_index_extern_sheet = in.readShort(); readCoordinates(in); }
public MemAreaPtg(LittleEndianInput in) { field_1_reserved = in.readInt(); field_2_subex_len = in.readShort(); }
public Ref3DPtg(LittleEndianInput in) { field_1_index_extern_sheet = in.readShort(); readCoordinates(in); }
public MemErrPtg(LittleEndianInput in) { field_1_reserved = in.readInt(); field_2_subex_len = in.readShort(); }
/**Creates new function pointer from a byte array * usually called while reading an excel file. */ public static FuncVarPtg create(LittleEndianInput in) { return create(in.readByte(), in.readShort()); }
public CommonObjectDataSubRecord(LittleEndianInput in, int size) { if (size != 18) { throw new RecordFormatException("Expected size 18 but got (" + size + ")"); } field_1_objectType = in.readShort(); field_2_objectId = in.readUShort(); field_3_option = in.readShort(); field_4_reserved1 = in.readInt(); field_5_reserved2 = in.readInt(); field_6_reserved3 = in.readInt(); }
public static String readUnicodeLPP4(LittleEndianInput is) { int length = is.readInt(); if (length%2 != 0) { throw new EncryptedDocumentException( "UNICODE-LP-P4 structure is a multiple of 4 bytes. " + "If Padding is present, it MUST be exactly 2 bytes long"); } String result = StringUtil.readUnicodeLE(is, length/2); if (length%4==2) { // Padding (variable): A set of bytes that MUST be of the correct size such that the size of the // UNICODE-LP-P4 structure is a multiple of 4 bytes. If Padding is present, it MUST be exactly // 2 bytes long, and each byte MUST be 0x00. is.readShort(); } return result; }
/** Creates new Threshold */ protected Threshold(LittleEndianInput in) { type = in.readByte(); short formulaLen = in.readShort(); if (formulaLen > 0) { formula = Formula.read(formulaLen, in); } else { formula = Formula.create(null); } // Value is only there for non-formula, non min/max thresholds if (formulaLen == 0 && type != RangeType.MIN.id && type != RangeType.MAX.id) { value = in.readDouble(); } }
public AttrPtg(LittleEndianInput in) { _options = in.readByte(); _data = in.readShort(); if (isOptimizedChoose()) { int[] jumpTable = new int[(int) _data]; for (int i = 0; i < jumpTable.length; i++) { jumpTable[i] = in.readUShort(); } _jumpTable = jumpTable; _chooseFuncOffset = in.readUShort(); } else { _jumpTable = null; _chooseFuncOffset = -1; } } private AttrPtg(int options, int data, int[] jt, int chooseFuncOffset) {
public IconMultiStateFormatting(LittleEndianInput in) { in.readShort(); // Ignored in.readByte(); // Reserved int num = in.readByte(); int set = in.readByte(); iconSet = IconSet.byId(set); if (iconSet.num != num) { log.log(POILogger.WARN, "Inconsistent Icon Set defintion, found " + iconSet + " but defined as " + num + " entries"); } options = in.readByte(); thresholds = new Threshold[iconSet.num]; for (int i=0; i<thresholds.length; i++) { thresholds[i] = new IconMultiStateThreshold(in); } }
public DataBarFormatting(LittleEndianInput in) { in.readShort(); // Ignored in.readByte(); // Reserved options = in.readByte(); percentMin = in.readByte(); percentMax = in.readByte(); if (percentMin < 0 || percentMin > 100) log.log(POILogger.WARN, "Inconsistent Minimum Percentage found " + percentMin); if (percentMax < 0 || percentMax > 100) log.log(POILogger.WARN, "Inconsistent Minimum Percentage found " + percentMin); color = new ExtendedColor(in); thresholdMin = new DataBarThreshold(in); thresholdMax = new DataBarThreshold(in); }