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

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

Introduction

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

Prototype

public static short getUByte(byte[] data) 

Source Link

Document

get the unsigned value of a byte.

Usage

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

License:Open Source License

/**
 * unsigned 1 byte/* w ww . j  av  a  2  s  .co m*/
 * 
 * @return
 * @throws IOException
 */
public short uint8() throws IOException {
    if (ensure(1) == 0)
        return -1;

    return LittleEndian.getUByte(buf);
}