Package

Source Code of OpenExclusive

import jcifs.smb.SmbFile;
import jcifs.smb.SmbFileOutputStream;

public class OpenExclusive {

    public static void main( String argv[] ) throws Exception {
        SmbFileOutputStream out;
        SmbFile f = new SmbFile( argv[0], "", null, SmbFile.FILE_NO_SHARE );
        out = new SmbFileOutputStream( f );
System.in.read();
        out.close();
System.in.read();
// OR
        out = new SmbFileOutputStream( argv[1], SmbFile.FILE_NO_SHARE );
System.in.read();
        out.close();
System.in.read();
    }
}
TOP

Related Classes of OpenExclusive

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.