Package org.apache.poi.util

Examples of org.apache.poi.util.LittleEndianInput.readByte()


    int f8_descriptionTextLen = in.readUByte();
    int f9_helpTopicTextLen  = in.readUByte();
    int f10_statusBarTextLen = in.readUByte();

    //store the name in byte form if it's a built-in name
    field_11_nameIsMultibyte = (in.readByte() != 0);
    if (isBuiltInName()) {
      field_12_built_in_code = in.readByte();
    } else {
      if (field_11_nameIsMultibyte) {
        field_12_name_text = StringUtil.readUnicodeLE(in, field_3_length_name_text);
View Full Code Here


    int f10_statusBarTextLen = in.readUByte();

    //store the name in byte form if it's a built-in name
    field_11_nameIsMultibyte = (in.readByte() != 0);
    if (isBuiltInName()) {
      field_12_built_in_code = in.readByte();
    } else {
      if (field_11_nameIsMultibyte) {
        field_12_name_text = StringUtil.readUnicodeLE(in, field_3_length_name_text);
      } else {
        field_12_name_text = StringUtil.readCompressedUnicode(in, field_3_length_name_text);
View Full Code Here

    field_2_frt_cell_ref_flag = in.readShort();
    field_3_reserved = in.readLong();
    final int field_4_name_length = in.readShort();
    final int field_5_comment_length = in.readShort();

    in.readByte(); //spurious NUL
    field_6_name_text = StringUtil.readCompressedUnicode(in, field_4_name_length);
    in.readByte(); //spurious NUL
    field_7_comment_text = StringUtil.readCompressedUnicode(in, field_5_comment_length);
  }
View Full Code Here

    final int field_4_name_length = in.readShort();
    final int field_5_comment_length = in.readShort();

    in.readByte(); //spurious NUL
    field_6_name_text = StringUtil.readCompressedUnicode(in, field_4_name_length);
    in.readByte(); //spurious NUL
    field_7_comment_text = StringUtil.readCompressedUnicode(in, field_5_comment_length);
  }

  /**
   * return the non static version of the id for this record.
View Full Code Here

    field_6_unknown = readRawData(in, remaining);
  }

  private static Ptg readRefPtg(byte[] formulaRawBytes) {
    LittleEndianInput in = new LittleEndianInputStream(new ByteArrayInputStream(formulaRawBytes));
    byte ptgSid = in.readByte();
    switch(ptgSid) {
      case AreaPtg.sid:   return new AreaPtg(in);
      case Area3DPtg.sid: return new Area3DPtg(in);
      case RefPtg.sid:  return new RefPtg(in);
      case Ref3DPtg.sid:  return new Ref3DPtg(in);
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.