Package com.helger.io.relative
Class FileRelativeIO
java.lang.Object
com.helger.io.relative.FileRelativeIO
- All Implemented Interfaces:
IFileRelativeIO,IPathRelativeIO
Default implementation of
IFileRelativeIO.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull FileRelativeIOCreate a newFileRelativeIOfor the current working directory.boolean@NonNull FileinthashCode()static voidinternalCheckAccessRights(@NonNull File aBasePath) Check read/write/execute access rights for the given base path and all contained files and directories.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.io.relative.IFileRelativeIO
appendFile, appendFile, createDirectory, deleteDirectory, deleteDirectoryIfExisting, deleteFile, deleteFileIfExisting, existsDir, existsFile, getBasePath, getFile, getOutputStream, getOutputStream, getRelativeFilename, getResource, getWriter, getWriter, renameDir, renameFile, saveFile, saveFile, writeFileMethods inherited from interface com.helger.io.relative.IPathRelativeIO
getInputStream, getReader
-
Constructor Details
-
FileRelativeIO
Constructor.- Parameters:
aBasePath- The absolute base path to use. May not benull. Must be an absolute path.
-
-
Method Details
-
internalCheckAccessRights
Check read/write/execute access rights for the given base path and all contained files and directories.- Parameters:
aBasePath- The base path to check. May not benull.
-
getBasePathFile
- Specified by:
getBasePathFilein interfaceIFileRelativeIO- Returns:
- The base path. Never
null.
-
equals
-
hashCode
public int hashCode() -
toString
-
createForCurrentDir
Create a newFileRelativeIOfor the current working directory.- Returns:
- A new
FileRelativeIOinstance. Nevernull.
-