パッケージ jcifs

インタフェース SmbRandomAccess

    • メソッドの詳細

      • 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 -
      • setLength

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