Package org.apache.poi.util

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


   * @param ris the RecordInputstream to read the record from
   */
  public NameRecord(RecordInputStream ris) {
    LittleEndianInput in = ris;
    field_1_option_flag                 = in.readShort();
    field_2_keyboard_shortcut           = in.readByte();
    int field_3_length_name_text        = in.readUByte();
    int field_4_length_name_definition  = in.readShort();
    field_5_externSheetIndex_plus1      = in.readShort();
    field_6_sheetNumber                 = in.readUShort();
    int f7_customMenuLen      = in.readUByte();
View Full Code Here


    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

      out.writeShort(_lineCount);
      out.writeShort(_unknownShort13);
    }
    private static Ptg readRefPtg(byte[] formulaRawBytes) {
      LittleEndianInput in = new LittleEndianByteArrayInputStream(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

    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

    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

   * @param ris the RecordInputstream to read the record from
   */
  public NameRecord(RecordInputStream ris) {
    LittleEndianInput in = ris;
    field_1_option_flag                 = in.readShort();
    field_2_keyboard_shortcut           = in.readByte();
    int field_3_length_name_text        = in.readByte();
    int field_4_length_name_definition  = in.readShort();
    field_5_externSheetIndex_plus1      = in.readShort();
    field_6_sheetNumber                 = in.readUShort();
    int f7_customMenuLen      = in.readUByte();
View Full Code Here

   */
  public NameRecord(RecordInputStream ris) {
    LittleEndianInput in = ris;
    field_1_option_flag                 = in.readShort();
    field_2_keyboard_shortcut           = in.readByte();
    int field_3_length_name_text        = in.readByte();
    int field_4_length_name_definition  = in.readShort();
    field_5_externSheetIndex_plus1      = in.readShort();
    field_6_sheetNumber                 = in.readUShort();
    int f7_customMenuLen      = in.readUByte();
    int f8_descriptionTextLen = in.readUByte();
View Full Code Here

    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

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.