パッケージ jcifs

インタフェース SmbRandomAccess

すべてのスーパーインタフェース:
AutoCloseable, DataInput, DataOutput
既知の実装クラスのリスト:
SmbRandomAccessFile

public interface SmbRandomAccess
extends DataOutput, DataInput, AutoCloseable
File access that exposes random access semantics
作成者:
mbechler
  • メソッドの詳細

    • close

      void close() throws SmbException
      Close the file
      定義:
      close インタフェース内 AutoCloseable
      例外:
      SmbException
    • read

      int read() throws SmbException
      Read a single byte from the current position
      戻り値:
      read byte, -1 if EOF
      例外:
      SmbException
    • read

      int read​(byte[] b) throws SmbException
      Read into buffer from current position
      パラメータ:
      b - buffer
      戻り値:
      number of bytes read
      例外:
      SmbException
    • read

      int read​(byte[] b, int off, int len) throws SmbException
      Read into buffer from current position
      パラメータ:
      b - buffer
      off - offset into buffer
      len - read up to len bytes
      戻り値:
      number of bytes read
      例外:
      SmbException
    • getFilePointer

      long getFilePointer()
      Current position in file
      戻り値:
      current position
    • seek

      void seek​(long pos)
      Seek to new position
      パラメータ:
      pos -
    • length

      long length() throws SmbException
      Get the current file length
      戻り値:
      file length
      例外:
      SmbException
    • setLength

      void setLength​(long newLength) throws SmbException
      Expand/truncate file length
      パラメータ:
      newLength - new file length
      例外:
      SmbException