Uses of Class
org.apache.commons.configuration2.io.FileLocator
Package
Description
The Configuration main package.
A package with classes related to I/O operations.
Configuration classes supporting NeXT / OpenStep /GNUStep style configuration.
-
Uses of FileLocator in org.apache.commons.configuration2
Modifier and TypeMethodDescriptionvoid
PropertiesConfiguration.initFileLocator
(FileLocator locator) Stores the currentFileLocator
for a following IO operation.void
XMLConfiguration.initFileLocator
(FileLocator loc) Passes the currentFileLocator
to this object.void
XMLPropertiesConfiguration.initFileLocator
(FileLocator locator) Initializes this object with aFileLocator
. -
Uses of FileLocator in org.apache.commons.configuration2.io
Modifier and TypeMethodDescriptionFileLocator.FileLocatorBuilder.create()
Creates a new immutableFileLocatorImpl
object based on the properties set so far for this builder.static FileLocator
Creates a newFileLocator
object with the properties defined in the given map.static FileLocator
FileLocatorUtils.fullyInitializedLocator
(FileLocator locator) Returns aFileLocator
object based on the passed in one whose location is fully defined.FileHandler.getFileLocator()
Gets aFileLocator
object with the specification of the file stored by thisFileHandler
.Modifier and TypeMethodDescriptionFileLocatorUtils.fileLocator
(FileLocator src) Returns aFileLocatorBuilder
which is already initialized with the properties of the passed inFileLocator
.static FileLocator
FileLocatorUtils.fullyInitializedLocator
(FileLocator locator) Returns aFileLocator
object based on the passed in one whose location is fully defined.void
FileLocatorAware.initFileLocator
(FileLocator locator) Passes the currentFileLocator
to this object.static boolean
FileLocatorUtils.isFullyInitialized
(FileLocator locator) Returns a flag whether all components of the givenFileLocator
describing the referenced file are defined.static boolean
FileLocatorUtils.isLocationDefined
(FileLocator locator) Checks whether the specifiedFileLocator
contains enough information to locate a file.AbsoluteNameLocationStrategy.locate
(FileSystem fileSystem, FileLocator locator) Tries to locate the specified file.BasePathLocationStrategy.locate
(FileSystem fileSystem, FileLocator locator) Tries to locate the specified file.ClasspathLocationStrategy.locate
(FileSystem fileSystem, FileLocator locator) Tries to locate the specified file.CombinedLocationStrategy.locate
(FileSystem fileSystem, FileLocator locator) Tries to locate the specified file.FileLocationStrategy.locate
(FileSystem fileSystem, FileLocator locator) Tries to locate the specified file.static URL
FileLocatorUtils.locate
(FileLocator locator) Locates the providedFileLocator
, returning a URL for accessing the referenced file.FileSystemLocationStrategy.locate
(FileSystem fileSystem, FileLocator locator) Tries to locate the specified file.HomeDirectoryLocationStrategy.locate
(FileSystem fileSystem, FileLocator locator) Tries to locate the specified file.ProvidedURLLocationStrategy.locate
(FileSystem fileSystem, FileLocator locator) Tries to locate the specified file.static URL
FileLocatorUtils.locateOrThrow
(FileLocator locator) Tries to locate the file referenced by the passed inFileLocator
.static void
FileLocatorUtils.put
(FileLocator locator, Map<String, Object> map) Stores the specifiedFileLocator
in the given map.void
FileHandler.setFileLocator
(FileLocator locator) Sets the file to be accessed by thisFileHandler
as aFileLocator
object. -
Uses of FileLocator in org.apache.commons.configuration2.plist
Modifier and TypeMethodDescriptionvoid
XMLPropertyListConfiguration.initFileLocator
(FileLocator locator) Stores the current file locator.