Examples of LittleEndianInput


Examples of org.apache.poi.util.LittleEndianInput

    in.readFully(byteEncoding);
    return new Formula(byteEncoding, encodedTokenLen);
  }
 
  public Ptg[] getTokens() {
    LittleEndianInput in = new LittleEndianByteArrayInputStream(_byteEncoding);
    return Ptg.readTokens(_encodedTokenLen, in);
  }
View Full Code Here

Examples of org.apache.poi.util.LittleEndianInput

   * classes are preserved during this transformation, because Excel may not tolerate the
   * incorrect encoding.  The formula here is one such example (Excel displays #VALUE!).
   */
  public void testConvertSharedFormulasOperandClasses_bug45123() {
   
    LittleEndianInput in = TestcaseRecordInputStream.createLittleEndian(SHARED_FORMULA_WITH_REF_ARRAYS_DATA);
    int encodedLen = in.readUShort();
    Ptg[] sharedFormula = Ptg.readTokens(encodedLen, in);
   
    Ptg[] convertedFormula = SharedFormulaRecord.convertSharedFormulas(sharedFormula, 100, 200);
   
    RefPtg refPtg = (RefPtg) convertedFormula[1];
View Full Code Here

Examples of org.apache.poi.util.LittleEndianInput

  public FormulaRecord() {
    field_8_parsed_expr = Formula.create(Ptg.EMPTY_PTG_ARRAY);
  }

  public FormulaRecord(RecordInputStream ris) {
    LittleEndianInput in = ris;
    field_1_row = in.readUShort();
    field_2_column = in.readShort();
    field_3_xf = in.readShort();
    long valueLongBits  = in.readLong();
    field_5_options = in.readShort();
    specialCachedValue = SpecialCachedValue.create(valueLongBits);
    if (specialCachedValue == null) {
      field_4_value = Double.longBitsToDouble(valueLongBits);
    }

    field_6_zero = in.readInt();

    int field_7_expression_len = in.readShort(); // this length does not include any extra array data
    int nBytesAvailable = in.available();
    field_8_parsed_expr = Formula.read(field_7_expression_len, in, nBytesAvailable);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.