Example usage for org.apache.poi.poifs.storage HeaderBlockConstants _signature

List of usage examples for org.apache.poi.poifs.storage HeaderBlockConstants _signature

Introduction

In this page you can find the example usage for org.apache.poi.poifs.storage HeaderBlockConstants _signature.

Prototype

long _signature

To view the source code for org.apache.poi.poifs.storage HeaderBlockConstants _signature.

Click Source Link

Usage

From source file:org.dhatim.fastexcel.reader.ReadableWorkbook.java

License:Apache License

public static boolean isOLE2Header(byte[] bytes) {
    requireLength(bytes, 8);//  ww  w.j a  v  a  2  s. c  o m
    byte[] ole2Header = new byte[8];
    LittleEndian.putLong(ole2Header, 0, HeaderBlockConstants._signature);
    return arrayEquals(bytes, 0, ole2Header, 0, ole2Header.length);
}