Example usage for org.apache.poi.util LittleEndian getUInt

List of usage examples for org.apache.poi.util LittleEndian getUInt

Introduction

In this page you can find the example usage for org.apache.poi.util LittleEndian getUInt.

Prototype

public static long getUInt(byte[] data) 

Source Link

Document

get an unsigned int value from a byte array

Usage

From source file:com.argo.hwp.utils.HwpStreamReader.java

License:Open Source License

/**
 * unsigned 4 byte/*from   w w  w. ja v  a 2  s  .co  m*/
 * 
 * @return
 * @throws IOException
 */
public long uint32() throws IOException {
    if (ensure(4) == 0)
        return -1;

    return LittleEndian.getUInt(buf);
}