public class FilePattern extends Object
| Constructor and Description |
|---|
FilePattern(org.scijava.io.location.BrowsableLocation baseLoc,
String pattern,
org.scijava.io.handle.DataHandleService dataHandleService)
Creates a pattern object for files with the given pattern string.
|
FilePattern(FilePatternService filePatternService,
org.scijava.io.location.BrowsableLocation name,
org.scijava.io.location.BrowsableLocation dir,
org.scijava.io.handle.DataHandleService dataHandleService)
Creates a pattern object using the given filename and directory path as a
template.
|
FilePattern(FilePatternService filePatternService,
org.scijava.io.location.BrowsableLocation file,
org.scijava.io.handle.DataHandleService dataHandleService)
Creates a pattern object using the given file as a template.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBlock(int i)
Gets the specified numerical block.
|
String[] |
getBlocks()
Gets each numerical block.
|
int[] |
getCount() |
String[][] |
getElements() |
String |
getErrorMessage()
Gets the file pattern error message, if any.
|
org.scijava.io.location.Location[] |
getFiles()
Gets a listing of all files matching the given file pattern.
|
String |
getPattern()
Gets the file pattern string.
|
String |
getPrefix()
Gets the pattern's text string before any numerical ranges.
|
String |
getPrefix(int i)
Gets the pattern's text string before the given numerical block.
|
String[] |
getPrefixes()
Gets the pattern's text string before each numerical block.
|
String |
getSuffix()
Gets the pattern's text string after all numerical ranges.
|
boolean |
isRegex()
Returns whether or not this pattern is a regular expression.
|
boolean |
isValid()
Gets whether the file pattern string is valid.
|
public FilePattern(FilePatternService filePatternService, org.scijava.io.location.BrowsableLocation file, org.scijava.io.handle.DataHandleService dataHandleService) throws IOException
IOExceptionpublic FilePattern(FilePatternService filePatternService, org.scijava.io.location.BrowsableLocation name, org.scijava.io.location.BrowsableLocation dir, org.scijava.io.handle.DataHandleService dataHandleService) throws IOException
IOExceptionpublic FilePattern(org.scijava.io.location.BrowsableLocation baseLoc, String pattern, org.scijava.io.handle.DataHandleService dataHandleService) throws IOException
IOExceptionpublic boolean isRegex()
public String getPattern()
public boolean isValid()
public String getErrorMessage()
public org.scijava.io.location.Location[] getFiles()
public String[][] getElements()
public int[] getCount()
public String getBlock(int i)
public String[] getBlocks()
public String getPrefix()
public String getSuffix()
public String getPrefix(int i)
public String[] getPrefixes()
Copyright © 2011–2026 SCIFIO. All rights reserved.