This is an interface to work with data as a file/folder. Replicates set of methods of java.io.File. The implementation can be mapped to the real file on disk or to the data in RAM which is represented as a file/directory by the implementation. Depending on implementation it works with a real file on disk or with a virtual file in RAM. To create an implementation, use FilePathRepresentationFactory. Implementation of this interface depends of implementation of the factory. Real implementation must correspond to real implementation of PathRepresentation.
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
createNewFile() |
|
boolean |
delete() |
|
boolean |
exists() |
|
FilePathRepresentationFactory |
factory() |
|
FileRepresentation |
getAbsoluteFile() |
|
java.lang.String |
getAbsolutePath() |
|
java.lang.String |
getName() |
|
java.io.InputStream |
inputStream() |
|
boolean |
isDirectory() |
|
boolean |
isFile() |
|
java.lang.String[] |
list() |
|
FileRepresentation[] |
listFiles(FileRepresentationFilter filter) |
|
boolean |
mkdir() |
|
java.io.OutputStream |
outputStream() |
|
java.io.Reader |
reader() |
|
PathRepresentation |
toPath() |