com.github.dockerjava.core
Class GoLangFileMatch
java.lang.Object
com.github.dockerjava.core.GoLangFileMatch
public class GoLangFileMatch
- extends Object
Implementation of golang's file.Match
Match returns true if name matches the shell file name pattern. The pattern syntax is:
pattern:
{ term }
term:
'*' matches any sequence of non-Separator characters
'?' matches any single non-Separator character
'[' [ '^' ] { character-range } ']'
character class (must be non-empty)
c matches character c (c != '*', '?', '\\', '[')
'\\' c matches character c
character-range:
c matches character c (c != '\\', '-', ']')
'\\' c matches character c
lo '-' hi matches character c for lo <= c <= hi
Match requires pattern to match all of name, not just a substring.
The only possible returned error is ErrBadPattern, when pattern
is malformed.
On Windows, escaping is disabled. Instead, '\\' is treated as
path separator.
- Author:
- tedo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IS_WINDOWS
public static final boolean IS_WINDOWS
GoLangFileMatch
public GoLangFileMatch()
match
public static boolean match(List<String> patterns,
File file)
match
public static boolean match(String pattern,
File file)
match
public static boolean match(List<String> patterns,
String name)
match
public static boolean match(String pattern,
String name)
Copyright © 2014. All Rights Reserved.