Class CommandLineRunner


  • public final class CommandLineRunner
    extends java.lang.Object
    This simple command line utility decodes files, directories of files, or URIs which are passed as arguments. By default it uses the normal decoding algorithms, but you can pass --try_harder to request that hint. The raw text of each barcode is printed, and when running against directories, summary statistics are also displayed.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CommandLineRunner()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.util.List<java.net.URI> expand​(java.lang.Iterable<java.net.URI> inputs)  
      private static boolean isExpandable​(java.lang.Iterable<java.net.URI> inputs)  
      private static boolean isFileOrDir​(java.net.URI uri)  
      static void main​(java.lang.String[] args)  
      private static java.util.List<java.net.URI> retainValid​(java.lang.Iterable<java.net.URI> inputs, boolean recursive)  
      • Methods inherited from class java.lang.Object

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

      • CommandLineRunner

        private CommandLineRunner()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • expand

        private static java.util.List<java.net.URI> expand​(java.lang.Iterable<java.net.URI> inputs)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • retainValid

        private static java.util.List<java.net.URI> retainValid​(java.lang.Iterable<java.net.URI> inputs,
                                                                boolean recursive)
      • isExpandable

        private static boolean isExpandable​(java.lang.Iterable<java.net.URI> inputs)
      • isFileOrDir

        private static boolean isFileOrDir​(java.net.URI uri)