public interface IFileRelativeIO extends IPathRelativeIO
IPathRelativeIO version that uses files as the basis.| Modifier and Type | Method and Description |
|---|---|
default boolean |
existsDir(String sRelativePath)
Check if a directory relative to the base path exists
|
default boolean |
existsFile(String sRelativePath)
Check if a file relative to the base path exists
|
default String |
getBasePath() |
File |
getBasePathFile() |
default File |
getFile(String sRelativePath)
Get a
File relative to the base path. |
default String |
getRelativeFilename(File aAbsoluteFile)
Get the relative file name for the passed absolute file.
|
default com.helger.commons.io.resource.FileSystemResource |
getResource(String sRelativePath)
Get the file system resource relative to the base path
|
getInputStream, getReader@Nonnull @Nonempty default String getBasePath()
getBasePath in interface IPathRelativeIOnull nor
empty.@Nonnull default File getFile(@Nonnull String sRelativePath)
File relative to the base path.sRelativePath - the relative pathFile and never null.getBasePathFile()default boolean existsFile(@Nonnull String sRelativePath)
sRelativePath - the relative pathtrue if the File is a file and exists,
false otherwise.getBasePathFile()default boolean existsDir(@Nonnull String sRelativePath)
sRelativePath - the relative pathtrue if the File is a directory and exists,
false otherwise.getBasePathFile()@Nonnull default com.helger.commons.io.resource.FileSystemResource getResource(@Nonnull String sRelativePath)
getResource in interface IPathRelativeIOsRelativePath - the relative pathFileSystemResource and never
null.getBasePathFile()Copyright © 2014–2017 Philip Helger. All rights reserved.