Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for SmbFile (0.2 sec)

  1. src/main/java/jcifs/smb/SmbFile.java

     * resources are files and directories however an <code>SmbFile</code>
     * may also refer to servers and workgroups. If the resource is a file or
     * directory the methods of <code>SmbFile</code> follow the behavior of
     * the well known {@link java.io.File} class. One fundamental difference
     * is the usage of a URL scheme [1] to specify the target file or
     * directory. SmbFile URLs have the following syntax:
     *
     * <blockquote>
     * 
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFile.java

    /**
     * Changes the name of the file this <code>SmbFile</code> represents to the name
     * designated by the <code>SmbFile</code> argument.
     * <p/>
     * <i>Remember: <code>SmbFile</code>s are immutible and therefore
     * the path associated with this <code>SmbFile</code> object will not
     * change). To access the renamed file it is necessary to construct a
     * new <tt>SmbFile</tt></i>.
     *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  3. src/main/java/jcifs/smb/SmbFileOutputStream.java

         * an SMB server represented by the {@link jcifs.smb.SmbFile} parameter. See
         * {@link jcifs.smb.SmbFile} for a detailed description and examples of
         * the smb URL syntax.
         *
         * @param file
         *            An <code>SmbFile</code> specifying the file to write to
         * @throws SmbException
         */
        public SmbFileOutputStream ( SmbFile file ) throws SmbException {
            this(file, false);
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/FileOperationsTest.java

        @Test
        public void testMoveFile () throws CIFSException, MalformedURLException, UnknownHostException {
            try ( SmbFile defaultShareRoot = getDefaultShareRoot();
                  SmbFile d = createTestDirectory();
                  SmbResource f = new SmbFile(defaultShareRoot, makeRandomName());
                  SmbFile f2 = new SmbFile(d, makeRandomName()) ) {
                f.createNewFile();
                boolean renamed = false;
                try {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/test/java/jcifs/tests/FileAttributesTest.java

         * @author Ilan Goldfeld
         */
        // #261
        @Test
        public void testExistsOnLock () throws IOException {
            try ( SmbFile f = createTestFile();
                  SmbFileOutputStream ostream = f.openOutputStream(true, SmbConstants.FILE_NO_SHARE);
                  SmbFile checkFile = new SmbFile(f.getCanonicalPath(), f.getContext()) ) {
    
                try {
                    assertTrue(checkFile.exists());
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/ConcurrencyTest.java

            private final AtomicInteger failCount;
            private final SmbFile file;
            private AtomicInteger writeCount;
    
    
            /**
             * @param failCount
             * @param smbFile
             */
            public LockedWritesTest ( AtomicInteger failCount, AtomicInteger writeCount, SmbFile smbFile ) {
                this.failCount = failCount;
                this.writeCount = writeCount;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/ContextConfigTest.java

            try ( SmbFile f = new SmbFile("smb://foo:b%40r@127.0.0.1/") ) {
                Assert.assertEquals("foo:b%40r", f.getLocator().getURL().getUserInfo());
                NtlmPasswordAuthenticator na = f.getContext().getCredentials().unwrap(NtlmPasswordAuthenticator.class);
                Assert.assertEquals("b@r", na.getPassword());
            }
    
            try ( SmbFile f = new SmbFile(new URL("smb://foo:b%40r@127.0.0.1/")) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/context/BaseContext.java

    import jcifs.smb.BufferCacheImpl;
    import jcifs.smb.CredentialsInternal;
    import jcifs.smb.DfsImpl;
    import jcifs.smb.Handler;
    import jcifs.smb.NtlmPasswordAuthenticator;
    import jcifs.smb.SIDCacheImpl;
    import jcifs.smb.SmbFile;
    import jcifs.smb.SmbNamedPipe;
    import jcifs.smb.SmbTransportPoolImpl;
    
    
    /**
     * @author mbechler
     *
     */
    public class BaseContext extends AbstractCIFSContext {
    
        private final Configuration config;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 27 18:25:00 GMT 2022
    - 5.3K bytes
    - Viewed (0)
Back to top