public Initial(LittleEndianInput in) { _reserved0 = in.readInt(); _reserved1 = in.readUShort(); _reserved2 = in.readUByte(); } private static RuntimeException invalid() {
/** Create a StringPtg from a stream */ public StringPtg(LittleEndianInput in) { int nChars = in.readUByte(); // Note - nChars is 8-bit _is16bitUnicode = (in.readByte() & 0x01) != 0; if (_is16bitUnicode) { field_3_string = StringUtil.readUnicodeLE(in, nChars); } else { field_3_string = StringUtil.readCompressedUnicode(in, nChars); } }
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(); int f8_descriptionTextLen = in.readUByte(); int f9_helpTopicTextLen = in.readUByte(); int f10_statusBarTextLen = in.readUByte();
/** * Read in the actual token (array) values. This occurs * AFTER the last Ptg in the expression. * See page 304-305 of Excel97-2007BinaryFileFormat(xls)Specification.pdf */ public ArrayPtg finishReading(LittleEndianInput in) { int nColumns = in.readUByte(); short nRows = in.readShort(); //The token_1_columns and token_2_rows do not follow the documentation. //The number of physical rows and columns is actually +1 of these values. //Which is not explicitly documented. nColumns++; nRows++; int totalCount = nRows * nColumns; Object[] arrayValues = ConstantValueParser.parse(in, totalCount); ArrayPtg result = new ArrayPtg(_reserved0, _reserved1, _reserved2, nColumns, nRows, arrayValues); result.setClass(getPtgClass()); return result; } }
public static String readCompressedUnicode(LittleEndianInput in, int nChars) { char[] buf = new char[nChars]; for (int i = 0; i < buf.length; i++) { buf[i] = (char) in.readUByte(); } return new String(buf); } /**
public static String readCompressedUnicode(LittleEndianInput in, int nChars) { char[] buf = new char[nChars]; for (int i = 0; i < buf.length; i++) { buf[i] = (char) in.readUByte(); } return new String(buf); } /**
public int readUByte() { return _rc4.xorByte(_le.readUByte()); } public byte readByte() {
public byte readByte() { return (byte) _rc4.xorByte(_le.readUByte()); }
public byte readByte() { return (byte) _rc4.xorByte(_le.readUByte()); }
public int readUByte() { return _rc4.xorByte(_le.readUByte()); } public byte readByte() {
public Initial(LittleEndianInput in) { _reserved0 = in.readInt(); _reserved1 = in.readUShort(); _reserved2 = in.readUByte(); } private static RuntimeException invalid() {
public Initial(LittleEndianInput in) { _reserved0 = in.readInt(); _reserved1 = in.readUShort(); _reserved2 = in.readUByte(); } private static RuntimeException invalid() {
public Initial(LittleEndianInput in) { _reserved0 = in.readInt(); _reserved1 = in.readUShort(); _reserved2 = in.readUByte(); } private static RuntimeException invalid() {
/** Create a StringPtg from a stream */ public StringPtg(LittleEndianInput in) { int nChars = in.readUByte(); // Note - nChars is 8-bit _is16bitUnicode = (in.readByte() & 0x01) != 0; if (_is16bitUnicode) { field_3_string = StringUtil.readUnicodeLE(in, nChars); } else { field_3_string = StringUtil.readCompressedUnicode(in, nChars); } }
/** Create a StringPtg from a stream */ public StringPtg(LittleEndianInput in) { int nChars = in.readUByte(); // Note - nChars is 8-bit _is16bitUnicode = (in.readByte() & 0x01) != 0; if (_is16bitUnicode) { field_3_string = StringUtil.readUnicodeLE(in, nChars); } else { field_3_string = StringUtil.readCompressedUnicode(in, nChars); } }
/** Create a StringPtg from a stream */ public StringPtg(LittleEndianInput in) { int nChars = in.readUByte(); // Note - nChars is 8-bit _is16bitUnicode = (in.readByte() & 0x01) != 0; if (_is16bitUnicode) { field_3_string = StringUtil.readUnicodeLE(in, nChars); } else { field_3_string = StringUtil.readCompressedUnicode(in, nChars); } }