/*
 * © 2017 AgNO3 Gmbh & Co. KG
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
package jcifs;


import java.io.DataInput;
import java.io.DataOutput;


/**
 * File access that exposes random access semantics
 * 
 * @author mbechler
 *
 */
public interface SmbRandomAccess extends DataOutput, DataInput, AutoCloseable {

}

@@ -843,16 +843,48 @@
 utput;%0A%0A
+import jcifs.smb.SmbException;%0A%0A
 %0A/**%0A * 
@@ -1044,10 +1044,1484 @@
 able %7B%0A%0A
+    /**%0A     * Close the file%0A     * %0A     * @throws SmbException%0A     */%0A    @Override%0A    void close () throws SmbException;%0A%0A%0A    /**%0A     * Read a single byte from the current position%0A     * %0A     * @return read byte, -1 if EOF%0A     * @throws SmbException%0A     */%0A    int read () throws SmbException;%0A%0A%0A    /**%0A     * Read into buffer from current position%0A     * %0A     * @param b%0A     *            buffer%0A     * @return number of bytes read%0A     * @throws SmbException%0A     */%0A    int read ( byte%5B%5D b ) throws SmbException;%0A%0A%0A    /**%0A     * Read into buffer from current position%0A     * %0A     * @param b%0A     *            buffer%0A     * @param off%0A     *            offset into buffer%0A     * @param len%0A     *            read up to %3Ctt%3Elen%3C/tt%3E bytes%0A     * @return number of bytes read%0A     * @throws SmbException%0A     */%0A    int read ( byte%5B%5D b, int off, int len ) throws SmbException;%0A%0A%0A    /**%0A     * Current position in file%0A     * %0A     * @return current position%0A     */%0A    long getFilePointer ();%0A%0A%0A    /**%0A     * Seek to new position%0A     * %0A     * @param pos%0A     */%0A    void seek ( long pos );%0A%0A%0A    /**%0A     * Get the current file length%0A     * %0A     * @return file length%0A     * @throws SmbException%0A     */%0A    long length () throws SmbException;%0A%0A%0A    /**%0A     * Expand/truncate file length%0A     * %0A     * @param newLength%0A     *            new file length%0A     * @throws SmbException%0A     */%0A    void setLength ( long newLength ) throws SmbException;%0A%0A
 %7D%0A

Add missing methods to SmbRandomAccess interface