Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 66 for SmbFile (0.16 sec)

  1. 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)
  2. src/test/java/jcifs/tests/WatchTest.java

            try ( SmbWatchHandle w = this.base
                    .watch(FileNotifyInformation.FILE_NOTIFY_CHANGE_ATTRIBUTES | FileNotifyInformation.FILE_NOTIFY_CHANGE_LAST_WRITE, false) ) {
                try ( SmbFile cr = new SmbFile(this.base, "modified") ) {
                    cr.createNewFile();
                    setupWatch(w);
                    try ( OutputStream os = cr.getOutputStream() ) {
                        os.write(new byte[] {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            this( new SmbFile( url, "", null, shareAccess ), mode );
        }
        public SmbRandomAccessFile( SmbFile file, String mode )
                throws SmbException, MalformedURLException, UnknownHostException {
            this.file = file;
            if( mode.equals( "r" )) {
                this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDONLY;
            } else if( mode.equals( "rw" )) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/smb/SmbFileInputStream.java

            this(new SmbFile(url, tc), 0, SmbConstants.O_RDONLY, SmbConstants.DEFAULT_SHARING, true);
        }
    
    
        /**
         * Creates an {@link java.io.InputStream} for reading bytes from a file on
         * 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.
         *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NetServerEnum2Response.java

            public String getName() {
                return name;
            }
            public int getType() {
                return (type & 0x80000000) != 0 ? SmbFile.TYPE_WORKGROUP : SmbFile.TYPE_SERVER;
            }
            public int getAttributes() {
                return SmbFile.ATTR_READONLY | SmbFile.ATTR_DIRECTORY;
            }
            public long createTime() {
                return 0L;
            }
            public long lastModified() {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 4.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/ReadWriteTest.java

                }
            }
        }
    
    
        @Test
        public void testReadWriteTwoHandles () throws IOException {
            try ( SmbFile f = createTestFile() ) {
                try ( SmbFile s = new SmbFile(f.getURL().toString(), withTestNTLMCredentials(getContext()));
                      SmbFile t = new SmbFile(f.getURL().toString(), withTestNTLMCredentials(getContext())) ) {
                    try ( OutputStream os = s.getOutputStream();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/http/NetworkExplorer.java

            // TODO catch IOException
        }
        protected int compareNames( SmbFile f1, String f1name, SmbFile f2 ) throws IOException {
            if( f1.isDirectory() != f2.isDirectory() ) {
                return f1.isDirectory() ? -1 : 1;
            }
            return f1name.compareToIgnoreCase( f2.getName() );
        }
        protected int compareSizes( SmbFile f1, String f1name, SmbFile f2 ) throws IOException {
            long diff;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 22 03:57:31 GMT 2020
    - 19.7K 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/http/NetworkExplorer.java

        protected void doDirectory ( HttpServletRequest req, HttpServletResponse resp, SmbFile dir ) throws IOException {
            PrintWriter out = resp.getWriter();
            SmbFile[] dirents;
            SmbFile f;
            int i, j, len, maxLen, dirCount, fileCount, sort;
            String str, name, path, fmt;
            LinkedList<SmbFile> sorted;
            ListIterator<SmbFile> iter;
            SimpleDateFormat sdf = new SimpleDateFormat("MM/d/yy h:mm a");
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 21.3K bytes
    - Viewed (0)
Back to top