Uses of Class
org.apache.commons.configuration2.io.FileLocator
Packages that use 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
Fields in org.apache.commons.configuration2 declared as FileLocatorModifier and TypeFieldDescriptionprivate FileLocatorPropertiesConfiguration.locatorThe currentFileLocator.private FileLocatorXMLConfiguration.locatorThe current file locator.private FileLocatorXMLPropertiesConfiguration.locatorThe temporary file locator.Methods in org.apache.commons.configuration2 with parameters of type FileLocatorModifier and TypeMethodDescriptionvoidPropertiesConfiguration.initFileLocator(FileLocator locator) Stores the currentFileLocatorfor a following IO operation.voidXMLConfiguration.initFileLocator(FileLocator loc) Passes the currentFileLocatorto this object.voidXMLPropertiesConfiguration.initFileLocator(FileLocator locator) Initializes this object with aFileLocator. -
Uses of FileLocator in org.apache.commons.configuration2.io
Fields in org.apache.commons.configuration2.io with type parameters of type FileLocatorModifier and TypeFieldDescriptionprivate final AtomicReference<FileLocator> FileHandler.fileLocatorA reference to the currentFileLocatorobject.Methods in org.apache.commons.configuration2.io that return FileLocatorModifier and TypeMethodDescriptionprivate FileLocatorFileHandler.checkContentAndGetLocator()Checks whether a content object is available and returns the currentFileLocator.FileLocator.FileLocatorBuilder.create()Creates a new immutableFileLocatorImplobject based on the properties set so far for this builder.private static FileLocatorFileLocatorUtils.createFullyInitializedLocatorFromURL(FileLocator src, URL url) Creates a fully initializedFileLocatorbased on the specified URL.private FileLocatorFileHandler.createLocatorWithFileName(String fileName, FileLocator locator) Creates aFileLocatorwhich is a copy of the passed in one, but has the given file name set to reference the target file.private static FileLocatorFileHandler.emptyFileLocator()Creates an uninitialized file locator.static FileLocatorCreates a newFileLocatorobject with the properties defined in the given map.static FileLocatorFileLocatorUtils.fullyInitializedLocator(FileLocator locator) Returns aFileLocatorobject based on the passed in one whose location is fully defined.FileHandler.getFileLocator()Gets aFileLocatorobject with the specification of the file stored by thisFileHandler.Methods in org.apache.commons.configuration2.io with parameters of type FileLocatorModifier and TypeMethodDescriptionprivate static FileFileHandler.createFile(FileLocator loc) Creates aFileobject from the content of the givenFileLocatorobject.private static FileLocatorFileLocatorUtils.createFullyInitializedLocatorFromURL(FileLocator src, URL url) Creates a fully initializedFileLocatorbased on the specified URL.private FileLocatorFileHandler.createLocatorWithFileName(String fileName, FileLocator locator) Creates aFileLocatorwhich is a copy of the passed in one, but has the given file name set to reference the target file.private StringHomeDirectoryLocationStrategy.fetchBasePath(FileLocator locator) Determines the base path to be used for the current locate() operation.FileLocatorUtils.fileLocator(FileLocator src) Returns aFileLocatorBuilderwhich is already initialized with the properties of the passed inFileLocator.static FileLocatorFileLocatorUtils.fullyInitializedLocator(FileLocator locator) Returns aFileLocatorobject based on the passed in one whose location is fully defined.(package private) static FileSystemFileLocatorUtils.getFileSystem(FileLocator locator) Obtains a non-nullFileSystemobject from the passed inFileLocator.(package private) static FileLocationStrategyFileLocatorUtils.getLocationStrategy(FileLocator locator) Gets a non nullFileLocationStrategyobject from the passed inFileLocator.private voidFileLocator.FileLocatorBuilder.initBuilder(FileLocator src) Initializes the properties of this builder from the passed in locator object.voidFileLocatorAware.initFileLocator(FileLocator locator) Passes the currentFileLocatorto this object.static booleanFileLocatorUtils.isFullyInitialized(FileLocator locator) Returns a flag whether all components of the givenFileLocatordescribing the referenced file are defined.static booleanFileLocatorUtils.isLocationDefined(FileLocator locator) Checks whether the specifiedFileLocatorcontains enough information to locate a file.private voidFileHandler.load(InputStream in, FileLocator locator) Internal helper method for loading a file from the given input stream.private voidFileHandler.load(String fileName, FileLocator locator) Internal helper method for loading a file from a file name.private voidFileHandler.load(URL url, FileLocator locator) Internal helper method for loading a file from the given URL.private voidFileHandler.load(FileLocator locator) Internal helper method for loading the associated file from the location specified in the givenFileLocator.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 URLFileLocatorUtils.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 URLFileLocatorUtils.locateOrThrow(FileLocator locator) Tries to locate the file referenced by the passed inFileLocator.static voidFileLocatorUtils.put(FileLocator locator, Map<String, Object> map) Stores the specifiedFileLocatorin the given map.private voidFileHandler.save(File file, FileLocator locator) Internal helper method for saving data to the givenFile.private voidFileHandler.save(OutputStream out, FileLocator locator) Internal helper method for saving a file to the given output stream.private voidFileHandler.save(String fileName, FileLocator locator) Internal helper method for saving data to the given file name.private voidFileHandler.save(URL url, FileLocator locator) Internal helper method for saving data to the given URL.private voidFileHandler.save(FileLocator locator) Internal helper method for saving data to the internal location stored for this object.voidFileHandler.setFileLocator(FileLocator locator) Sets the file to be accessed by thisFileHandleras aFileLocatorobject.Constructors in org.apache.commons.configuration2.io with parameters of type FileLocatorModifierConstructorDescriptionprivateFileHandler(FileBased obj, FileLocator locator) Creates a new instance ofFileHandlerbased on the givenFileBasedandFileLocatorobjects.(package private)Creates a new instance ofFileLocatorBuilderand initializes the builder's properties from the passed inFileLocatorobject. -
Uses of FileLocator in org.apache.commons.configuration2.plist
Fields in org.apache.commons.configuration2.plist declared as FileLocatorModifier and TypeFieldDescriptionprivate FileLocatorXMLPropertyListConfiguration.locatorTemporarily stores the current file location.Methods in org.apache.commons.configuration2.plist with parameters of type FileLocatorModifier and TypeMethodDescriptionvoidXMLPropertyListConfiguration.initFileLocator(FileLocator locator) Stores the current file locator.