public class DefaultFilePatternService extends org.scijava.service.AbstractService implements FilePatternService
FilePatternService implementation.FilePatternService| Constructor and Description |
|---|
DefaultFilePatternService() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
findImagePatterns(org.scijava.io.location.BrowsableLocation base)
Finds the list of names matching the provided base and generates all
patterns that match the list.
|
String[] |
findImagePatterns(org.scijava.io.location.BrowsableLocation base,
org.scijava.io.location.BrowsableLocation dir,
Collection<org.scijava.io.location.BrowsableLocation> nameList)
Generates a list of all the patterns that match the provided list of file
names.
|
String |
findPattern(org.scijava.io.location.BrowsableLocation file)
Identifies the group pattern from a given file within that group.
|
String |
findPattern(org.scijava.io.location.BrowsableLocation name,
org.scijava.io.location.BrowsableLocation dir)
Identifies the group pattern from a given file within that group.
|
String |
findPattern(org.scijava.io.location.BrowsableLocation name,
org.scijava.io.location.BrowsableLocation dir,
Collection<org.scijava.io.location.BrowsableLocation> f)
Identifies the group pattern from a given file within that group.
|
String |
findPattern(org.scijava.io.location.BrowsableLocation file,
org.scijava.io.location.BrowsableLocation dir,
Collection<org.scijava.io.location.BrowsableLocation> nameList,
int[] excludeAxes)
Identifies the group pattern from a given file within that group.
|
String |
findPattern(String path)
Identifies the group pattern from a given file within that group.
|
String |
findPattern(String[] names)
Generate a pattern from a list of file names.
|
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic String findPattern(String path) throws IOException
FilePatternServicefindPattern in interface FilePatternServicepath - The file path (to a local file) to use as a template for the
match.IOExceptionpublic String findPattern(org.scijava.io.location.BrowsableLocation file) throws IOException
FilePatternServicefindPattern in interface FilePatternServicefile - The file to use as a template for the match.IOExceptionpublic String findPattern(org.scijava.io.location.BrowsableLocation name, org.scijava.io.location.BrowsableLocation dir) throws IOException
FilePatternServicefindPattern in interface FilePatternServicename - The filename to use as a template for the match.dir - The directory in which to search for matching files.IOExceptionpublic String findPattern(org.scijava.io.location.BrowsableLocation name, org.scijava.io.location.BrowsableLocation dir, Collection<org.scijava.io.location.BrowsableLocation> f)
FilePatternServicefindPattern in interface FilePatternServicename - The filename to use as a template for the match.dir - The directory prefix to use for matching files.f - The names through which to search for matching files.public String findPattern(org.scijava.io.location.BrowsableLocation file, org.scijava.io.location.BrowsableLocation dir, Collection<org.scijava.io.location.BrowsableLocation> nameList, int[] excludeAxes)
FilePatternServicefindPattern in interface FilePatternServicefile - The filename to use as a template for the match.dir - The directory prefix to use for matching files.nameList - The names through which to search for matching files.excludeAxes - The list of axis types which should be excluded from the
pattern.public String findPattern(String[] names)
FilePatternServiceCurrently assumes that all file names are in the same directory.
findPattern in interface FilePatternServicepublic String[] findImagePatterns(org.scijava.io.location.BrowsableLocation base) throws IOException
FilePatternServicefindImagePatterns in interface FilePatternServiceIOExceptionpublic String[] findImagePatterns(org.scijava.io.location.BrowsableLocation base, org.scijava.io.location.BrowsableLocation dir, Collection<org.scijava.io.location.BrowsableLocation> nameList) throws IOException
FilePatternServicefindImagePatterns in interface FilePatternServiceIOExceptionCopyright © 2011–2026 SCIFIO. All rights reserved.