Class Version

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Integer>, picocli.CommandLine.IVersionProvider

    final class Version
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.Integer>, picocli.CommandLine.IVersionProvider
    A simple command line utility to get the version of PDFBox.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) picocli.CommandLine.Model.CommandSpec spec  
      private java.io.PrintStream SYSOUT  
    • Constructor Summary

      Constructors 
      Constructor Description
      Version()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer call()  
      java.lang.String[] getVersion()
      Get the version of PDFBox or unknown if it is not known.
      static void main​(java.lang.String[] args)
      This will print out the version of PDF to System.out.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SYSOUT

        private final java.io.PrintStream SYSOUT
      • spec

        picocli.CommandLine.Model.CommandSpec spec
    • Constructor Detail

      • Version

        public Version()
        Constructor.
    • Method Detail

      • getVersion

        public java.lang.String[] getVersion()
        Get the version of PDFBox or unknown if it is not known.
        Specified by:
        getVersion in interface picocli.CommandLine.IVersionProvider
        Returns:
        The version of pdfbox that is being used.
      • main

        public static void main​(java.lang.String[] args)
        This will print out the version of PDF to System.out.
        Parameters:
        args - Command line arguments.
      • call

        public java.lang.Integer call()
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Integer>