Package cz.o2.proxima.direct.io.bulkfs
Class LocalPath
- java.lang.Object
-
- cz.o2.proxima.direct.io.bulkfs.LocalPath
-
public class LocalPath extends java.lang.Object implements Path
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalPath(java.io.File path, FileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Path other)
void
delete()
Delete thisPath
.FileSystem
getFileSystem()
RetrieveFileSystem
of this Path.java.io.InputStream
reader()
Open input stream from given Path.java.lang.String
toString()
java.io.OutputStream
writer()
Open output stream to the Path.
-
-
-
Constructor Detail
-
LocalPath
public LocalPath(java.io.File path, FileSystem fs)
-
-
Method Detail
-
reader
public java.io.InputStream reader() throws java.io.IOException
Description copied from interface:Path
Open input stream from given Path.
-
writer
public java.io.OutputStream writer() throws java.io.IOException
Description copied from interface:Path
Open output stream to the Path.
-
getFileSystem
public FileSystem getFileSystem()
Description copied from interface:Path
RetrieveFileSystem
of this Path.- Specified by:
getFileSystem
in interfacePath
- Returns:
FileSystem
associated with thePath
.
-
delete
public void delete() throws java.io.IOException
Description copied from interface:Path
Delete thisPath
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-