public interface FilePathRepresentationFactory
Implements the abstract factory pattern. Because java.nio.file.Path and java.io.File are cross-referenced by java.nio.file.Path#toFile() and java.io.File#toPath() methods, the PathRepresentation and FileRepresentation implementations must correspond each other. Replicates some constructors of java.io.File, some factory methods of java.nio.file.Paths and etc. This an interface of a factory, which provides different ways to create an implementation of FileRepresentation and PathRepresentation. Implementations of created FileRepresentation and PathRepresentation object depend on implementation of this factory interface. Using different implementations of this factory interface, we can manage type of real file storage which FileRepresentation and PathRepresentation are mapped to (it can be real file on disk or some data in RAM which is represented as a file by implementation of FileRepresentation interface).
Type Params | Return Type | Name and description |
---|---|---|
|
public FileRepresentation |
createFileRepresentation(FileRepresentation parent, java.lang.String child) |
|
public PathRepresentation |
createPathRepresentation(java.lang.String first, java.lang.String more)
|
|
public java.lang.String |
normalizeSeparators(java.lang.String path) |