info.informatica.io
Class FilePatternSpec

java.lang.Object
  extended by info.informatica.io.FilePatternSpec

public class FilePatternSpec
extends Object

Uses two properties to specify wildcard behavior:

Author:
Carlos Amengual (amengual at informatica.info)

Nested Class Summary
 class FilePatternSpec.FilePattern
           
 
Constructor Summary
FilePatternSpec(FilesystemInfo fsinfo)
          Constructor.
 
Method Summary
 FilePatternSpec.FilePattern getFilePattern(String patternPath)
           
 String getFirstWildcardPath(String path)
           
 String getNonWildcardPath(String path)
           
 boolean hasWildcards(String path)
          Tests if the given path or filename includes wildcards.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePatternSpec

public FilePatternSpec(FilesystemInfo fsinfo)
Constructor.

Parameters:
fsinfo - the appropriate FilesystemInfo.
Method Detail

getNonWildcardPath

public String getNonWildcardPath(String path)
Parameters:
path - The path with wildcards.
Returns:
the wildcard-free left part of wcpath.

getFirstWildcardPath

public String getFirstWildcardPath(String path)
Parameters:
path - The path with wildcards.
Returns:
the path through (and including) the first appearance of the wildcards.

hasWildcards

public boolean hasWildcards(String path)
Tests if the given path or filename includes wildcards.

Parameters:
path - the path to test.
Returns:
true if has wildcards, false otherwise.

getFilePattern

public FilePatternSpec.FilePattern getFilePattern(String patternPath)
Parameters:
patternPath - Absolute path with wildcards.