Class PathRandomAccessImpl

java.lang.Object
com.sshtools.common.files.vfs.PathRandomAccessImpl
All Implemented Interfaces:
com.sshtools.common.files.AbstractFileRandomAccess

@Deprecated(since="3.1.0", forRemoval=true) public class PathRandomAccessImpl extends Object implements com.sshtools.common.files.AbstractFileRandomAccess
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated. Use NioFileFactory and NioFile.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Path
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected FileChannel
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathRandomAccessImpl(Path f, boolean writeAccess)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    read(byte[] buf, int off, int len)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    seek(long position)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setLength(long length)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(byte[] buf, int off, int len)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    write(int b)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • raf

      protected FileChannel raf
      Deprecated, for removal: This API element is subject to removal in a future version.
    • f

      protected Path f
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • PathRandomAccessImpl

      public PathRandomAccessImpl(Path f, boolean writeAccess) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
  • Method Details

    • write

      public void write(int b) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • write

      public void write(byte[] buf, int off, int len) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      write in interface com.sshtools.common.files.AbstractFileRandomAccess
      Throws:
      IOException
    • close

      public void close() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      close in interface com.sshtools.common.files.AbstractFileRandomAccess
      Throws:
      IOException
    • seek

      public void seek(long position) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      seek in interface com.sshtools.common.files.AbstractFileRandomAccess
      Throws:
      IOException
    • read

      public int read(byte[] buf, int off, int len) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      read in interface com.sshtools.common.files.AbstractFileRandomAccess
      Throws:
      IOException
    • setLength

      public void setLength(long length) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setLength in interface com.sshtools.common.files.AbstractFileRandomAccess
      Throws:
      IOException
    • getFilePointer

      public long getFilePointer() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getFilePointer in interface com.sshtools.common.files.AbstractFileRandomAccess
      Throws:
      IOException