Package org.apache.poi.util

Examples of org.apache.poi.util.LittleEndianByteArrayInputStream.readUShort()


    // Confirm first few bytes of ContinueRecord
    LittleEndianInput crIn = new LittleEndianByteArrayInputStream(ser, (MAX_BIFF_DATA + 4));
    int nCharsInFirstRec = MAX_BIFF_DATA - (2 + 1); // strLen, optionFlags
    int nCharsInSecondRec = TEXT_LEN - nCharsInFirstRec;
    assertEquals(ContinueRecord.sid, crIn.readUShort());
    assertEquals(1 + nCharsInSecondRec, crIn.readUShort());
    assertEquals(0, crIn.readUByte());
    assertEquals('N', crIn.readUByte());
    assertEquals('O', crIn.readUByte());
View Full Code Here


    // Confirm first few bytes of ContinueRecord
    LittleEndianInput crIn = new LittleEndianByteArrayInputStream(ser, (MAX_BIFF_DATA + 4));
    int nCharsInFirstRec = MAX_BIFF_DATA - (2 + 1); // strLen, optionFlags
    int nCharsInSecondRec = TEXT_LEN - nCharsInFirstRec;
    assertEquals(ContinueRecord.sid, crIn.readUShort());
    assertEquals(1 + nCharsInSecondRec, crIn.readUShort());
    assertEquals(0, crIn.readUByte());
    assertEquals('N', crIn.readUByte());
    assertEquals('O', crIn.readUByte());

    // re-read and make sure string value is the same
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.