Top Description Fields Constructors Methods
org.apache.pdfbox.tools

pack-priv final Class Version

extends Object
implements Callable<Integer>, IVersionProvider
Class Inheritance
All Implemented Interfaces
picocli.CommandLine.IVersionProvider, java.util.concurrent.Callable
Annotations
@Command
name:version
header:Gets the version of PDFBox
Imports
java.io.PrintStream, java.util.concurrent.Callable, picocli.CommandLine, .CommandLine.Command, .CommandLine.IVersionProvider, .CommandLine.Spec, .CommandLine.Model.CommandSpec

A simple command line utility to get the version of PDFBox.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
pack-priv CommandLine.Model.CommandSpec
private final PrintStream

Constructor Summary

AccessConstructor and Description
public
Version()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public Integer
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

public String[]

Returns:

The version of pdfbox that is being used.
getVersion
()

Implements picocli.CommandLine.IVersionProvider.getVersion.

Get the version of PDFBox or unknown if it is not known.

public static void
main(String[]
Command line arguments.
args
)

This will print out the version of PDF to System.out.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

specback to summary
pack-priv CommandLine.Model.CommandSpec spec
Annotations
@Spec
SYSOUTback to summary
private final PrintStream SYSOUT
Annotations
@SuppressWarnings:squid:S106

Constructor Detail

Versionback to summary
public Version()

Constructor.

Method Detail

callback to summary
public Integer call()

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Returns:Integer

computed result

getVersionback to summary
public String[] getVersion()

Implements picocli.CommandLine.IVersionProvider.getVersion.

Get the version of PDFBox or unknown if it is not known.

Returns:String[]

The version of pdfbox that is being used.

mainback to summary
public static void main(String[] args)

This will print out the version of PDF to System.out.

Parameters
args:String[]

Command line arguments.