Package jcifs

Interface SmbRandomAccess

    • Method Detail

      • read

        int read()
          throws SmbException
        Read a single byte from the current position
        Returns:
        read byte, -1 if EOF
        Throws:
        SmbException
      • read

        int read​(byte[] b)
          throws SmbException
        Read into buffer from current position
        Parameters:
        b - buffer
        Returns:
        number of bytes read
        Throws:
        SmbException
      • read

        int read​(byte[] b,
                 int off,
                 int len)
          throws SmbException
        Read into buffer from current position
        Parameters:
        b - buffer
        off - offset into buffer
        len - read up to len bytes
        Returns:
        number of bytes read
        Throws:
        SmbException
      • getFilePointer

        long getFilePointer()
        Current position in file
        Returns:
        current position
      • seek

        void seek​(long pos)
        Seek to new position
        Parameters:
        pos -
      • setLength

        void setLength​(long newLength)
                throws SmbException
        Expand/truncate file length
        Parameters:
        newLength - new file length
        Throws:
        SmbException