@Override public SmbRandomAccessFile openRandomAccess ( String mode ) throws SmbException { return new SmbRandomAccessFile(this, mode); }
@Override public SmbRandomAccessFile openRandomAccess ( String mode, int sharing ) throws SmbException { return new SmbRandomAccessFile(this, mode, sharing, false); }
@Override public SmbRandomAccessFile openRandomAccess ( String mode, int sharing ) throws SmbException { return new SmbRandomAccessFile(this, mode, sharing, false); }
@Override public SmbRandomAccessFile openRandomAccess ( String mode ) throws SmbException { return new SmbRandomAccessFile(this, mode); }
@Override public RandomAccessOutputStream getRandomAccessOutputStream() throws IOException { // // Explicitly allow the file to be read/write/delete by another random access file while this one is open // return new SMBRandomAccessOutputStream(new SmbRandomAccessFile(fileURL.toString(true), "rw", SmbFile.FILE_SHARE_READ | SmbFile.FILE_SHARE_WRITE | SmbFile.FILE_SHARE_DELETE)); return new SMBRandomAccessOutputStream(new SmbRandomAccessFile(file, "rw")); }
@Override public RandomAccessInputStream getRandomAccessInputStream() throws IOException { // This needs to be checked explicitly (SmbRandomAccessFile can be created even if the file does not exist) if(!exists()) throw new IOException(); // // Explicitly allow the file to be read/write/delete by another random access file while this one is open // return new SMBRandomAccessInputStream(new SmbRandomAccessFile(fileURL.toString(true), "r", SmbFile.FILE_SHARE_READ | SmbFile.FILE_SHARE_WRITE | SmbFile.FILE_SHARE_DELETE)); return new SMBRandomAccessInputStream(new SmbRandomAccessFile(file, "r")); }
raf = new SmbRandomAccessFile(smbFile, mode.getModeString()); rafis = new InputStream() { @Override
raf = new SmbRandomAccessFile(smbFile, mode.getModeString()); rafis = new InputStream()