public class DirectorySource extends AbstractDirectoryInfo implements InfoSource
AbstractDirectoryInfo.Options| Modifier and Type | Field and Description |
|---|---|
static FileFilter |
DIRECTORIES_ONLY
A simple filter for directories.
|
asStringOpt, errors, file, url| Constructor and Description |
|---|
DirectorySource(String directory)
Creates a new directory source object from a directory name.
|
DirectorySource(String directory,
InfoLocationOptions option)
Creates a new directory source object from a directory name with options.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Returns a string representation of the source for messages.
|
IsErrorSetFT |
getInitError()
Returns any error that happened during initialization (and relate validation) of the source.
|
Object |
getSource()
Returns the actual source.
|
protected ValidationOptions |
valOption()
Returns the validation option which makes this abstract implementation a info object or target or both.
|
asFile, asURL, getFullDirecoryName, getSetRootPath, init, isValid, reset, setAsStringOption, testDirectory, tryCP, tryFSclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidpublic static final FileFilter DIRECTORIES_ONLY
public DirectorySource(String directory)
directory - name of the directory.
Path information can be relative to any path in the class path.public DirectorySource(String directory, InfoLocationOptions option)
directory - name of the directory.
Path information can be relative to any path in the class path.option - an option on how to locate the directorypublic Object getSource()
InfoSourcegetSource in interface InfoSourcepublic IsErrorSetFT getInitError()
InfoSourcegetInitError in interface InfoSourceprotected ValidationOptions valOption()
AbstractDirectoryInfovalOption in class AbstractDirectoryInfopublic String asString()
InfoSourceasString in interface InfoSourceCopyright © 2010–2017. All rights reserved.