Example usage for org.apache.pdfbox.cos COSInteger longValue

List of usage examples for org.apache.pdfbox.cos COSInteger longValue

Introduction

In this page you can find the example usage for org.apache.pdfbox.cos COSInteger longValue.

Prototype

@Override
public long longValue() 

Source Link

Document

Polymorphic access to value as int This will get the integer value of this object.

Usage

From source file:org.lockss.pdf.pdfbox.PdfBoxTokens.java

License:Open Source License

/**
 * <p>//from   w  ww.  jav  a 2 s .  c om
 * Converts from a {@link COSInteger} to a <code>long</code>
 * value.
 * </p>
 * @param cosInteger A {@link COSInteger} instance.
 * @return A <code>long</code> value.
 * @since 1.56
 */
protected static long getInteger(COSInteger cosInteger) {
    return cosInteger.longValue();
}