Package org.oddjob.io

Class WildcardSpec

java.lang.Object
org.oddjob.io.WildcardSpec

public class WildcardSpec extends Object
Utility class for wild-card file matching. Note that the File objects returned are all in the canonical file format.
  • Constructor Details

    • WildcardSpec

      public WildcardSpec(String spec)
      Create a new instance with a String file path.
      Parameters:
      spec -
    • WildcardSpec

      public WildcardSpec(File file)
      Create a new instance with a file.
      Parameters:
      file -
  • Method Details

    • isWildcardSpec

      public boolean isWildcardSpec()
      Is the file specification a wild card specification.
      Returns:
    • findFiles

      public File[] findFiles() throws IOException
      Find all files matching the specialisation.
      Returns:
      Throws:
      IOException
    • findFiles

      protected File[] findFiles(org.oddjob.io.WildcardSpec.DirectorySplit split) throws IOException
      Recursively find file in the path.
      Parameters:
      split - The path split up into wildcard sections.
      Returns:
      Throws:
      IOException
    • possiblyRecursiveMatch

      public static void possiblyRecursiveMatch(File from, String namespec, List<File> results)