Class LocalPath

  • All Implemented Interfaces:
    Path, java.io.Serializable, java.lang.Comparable<Path>

    public class LocalPath
    extends java.lang.Object
    implements Path
    See Also:
    Serialized Form
    • 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.
        Specified by:
        reader in interface Path
        Returns:
        InputStream of the Path.
        Throws:
        java.io.IOException - on errors
      • writer

        public java.io.OutputStream writer()
                                    throws java.io.IOException
        Description copied from interface: Path
        Open output stream to the Path.
        Specified by:
        writer in interface Path
        Returns:
        OutputStream of the Path
        Throws:
        java.io.IOException - on errors *
      • delete

        public void delete()
                    throws java.io.IOException
        Description copied from interface: Path
        Delete this Path.
        Specified by:
        delete in interface Path
        Throws:
        java.io.IOException - on errors
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(@Nonnull
                             Path other)
        Specified by:
        compareTo in interface java.lang.Comparable<Path>