Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 66 for SmbFile (0.23 sec)

  1. src/test/java/jcifs/tests/NamingTest.java

    
        private void runFilenameTest ( String... names ) throws CIFSException, UnknownHostException, MalformedURLException {
            try ( SmbFile d = createTestDirectory() ) {
                try {
    
                    for ( String name : names ) {
                        try ( SmbResource tf = new SmbFile(d, name) ) {
                            tf.createNewFile();
                        }
                    }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbResourceLocator.java

         * <code>SmbFile</code> references a workgroup, the name of the workgroup
         * is returned. If this <code>SmbFile</code> refers to the root of this
         * SMB network hierarchy, <code>null</code> is returned.
         * 
         * @return The server or workgroup name or <code>null</code> if this
         *         <code>SmbFile</code> refers to the root <code>smb://</code> resource.
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/EnumTest.java

            try ( SmbFile f = createTestDirectory() ) {
                try ( SmbFile a = new SmbFile(f, "a.txt");
                      SmbFile b = new SmbFile(f, "b.txt");
                      SmbFile c = new SmbFile(f, "c.bar") ) {
    
                    a.createNewFile();
                    b.createNewFile();
                    c.createNewFile();
    
                    SmbFile[] files = f.listFiles(new DosFileFilter("*.txt", -1));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TestLocking.java

        int numIter = 1;
        long delay = 100;
        String url = null;
        int numComplete = 0;
        long ltime = 0L;
    
        public void run()
        {
            try {
                SmbFile f = new SmbFile(url);
                SmbFile d = new SmbFile(f.getParent());
                byte[] buf = new byte[1024];
    
                for (int ii = 0; ii < numIter; ii++) {
    
                    synchronized (this) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            // shareAccess
            this.shareAccess = shareAccess;
    
            // createDisposition
            if(( flags & SmbFile.O_TRUNC ) == SmbFile.O_TRUNC ) {
                // truncate the file
                if(( flags & SmbFile.O_CREAT ) == SmbFile.O_CREAT ) {
                    // create it if necessary
                    createDisposition = FILE_OVERWRITE_IF;
                } else {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

            // fileAttributes
            fileAttributes = 0;
    
            // openFunction
            if(( flags & SmbFile.O_TRUNC ) == SmbFile.O_TRUNC ) {
                // truncate the file
                if(( flags & SmbFile.O_CREAT ) == SmbFile.O_CREAT ) {
                    // create it if necessary
                    openFunction = OPEN_FN_TRUNC | OPEN_FN_CREATE;
                } else {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

            this( new SmbFile( url ));
        }
    
    /**
     * Creates an {@link java.io.InputStream} for reading bytes from a file on
     * an SMB server represented by the {@link jcifs.smb1.smb1.SmbFile} parameter. See
     * {@link jcifs.smb1.smb1.SmbFile} for a detailed description and examples of
     * the smb URL syntax.
     *
     * @param file An <code>SmbFile</code> specifying the file to read from
     */
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbCopyUtil.java

         * @param b
         * @param bsize
         * @param w
         * @param dh
         * @param sh
         * @param req
         * @param resp
         * @throws SmbException
         */
        static void copyFile ( SmbFile src, SmbFile dest, byte[][] b, int bsize, WriterThread w, SmbTreeHandleImpl sh, SmbTreeHandleImpl dh )
                throws SmbException {
    
            if ( sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh) ) {
                try {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                List<SmbFile> list = new ArrayList<>();
                while ( it.hasNext() ) {
                    try ( SmbResource n = it.next() ) {
                        if ( n instanceof SmbFile ) {
                            list.add((SmbFile) n);
                        }
                    }
                }
                return list.toArray(new SmbFile[list.size()]);
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 20 08:41:19 GMT 2019
    - 12.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/SessionTest.java

            Assert.assertTrue(f1 instanceof SmbFile);
            Assert.assertTrue(f2 instanceof SmbFile);
            try ( SmbTreeHandleInternal th1 = (SmbTreeHandleInternal) ( (SmbFile) f1 ).getTreeHandle();
                  SmbTreeHandleInternal th2 = (SmbTreeHandleInternal) ( (SmbFile) f2 ).getTreeHandle();
                  SmbSessionInternal sess1 = th1.getSession().unwrap(SmbSessionInternal.class);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
Back to top