Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 68 for SmbFile (0.05 sec)

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

            this(new SmbFile(url, tc), mode, sharing, true);
        }
    
    
        /**
         * Instantiate a random access file from a {@link SmbFile}
         * 
         * @param file
         * @param mode
         * @throws SmbException
         */
        public SmbRandomAccessFile ( SmbFile file, String mode ) throws SmbException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  2. 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;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 22 03:57:31 UTC 2020
    - 19.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/BaseCIFSTest.java

            f.exists();
        }
    
    
        protected SmbFile createTestFile () throws MalformedURLException, UnknownHostException, CIFSException {
            try ( SmbFile defaultShareRoot = getDefaultShareRoot() ) {
                SmbFile f = new SmbFile(defaultShareRoot, makeRandomName());
                f.createNewFile();
                return f;
            }
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  4. 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();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbShareInfo.java

            /* 0x80000000 means hidden but SmbFile.isHidden() checks for $ at end
             */
            switch (type & 0xFFFF) {
                case 1:
                    return SmbFile.TYPE_PRINTER;
                case 3:
                    return SmbFile.TYPE_NAMED_PIPE;
            }
            return SmbFile.TYPE_SHARE;
        }
        public int getAttributes() {
            return SmbFile.ATTR_READONLY | SmbFile.ATTR_DIRECTORY;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

            responseData.setUrl(filePath);
    
            SmbFile file = null;
            final SmbAuthentication smbAuthentication = smbAuthenticationHolder.get(filePath);
            if (logger.isDebugEnabled()) {
                logger.debug("Creating SmbFile: {}", filePath);
            }
            try {
                if (smbAuthentication == null) {
                    file = new SmbFile(filePath);
                } else {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. 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 {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.6K bytes
    - Viewed (0)
  8. 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());
                }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java

     * Named Pipes</a> for a detailed description of how to use jCIFS with
     * Win32 Named Pipe server processes.
     *
     */
    
    public class SmbNamedPipe extends SmbFile {
    
        /**
         * The pipe should be opened read-only.
         */
    
        public static final int PIPE_TYPE_RDONLY = O_RDONLY;
    
        /**
         * The pipe should be opened only for writing.
         */
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  10. 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);
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:14:04 UTC 2021
    - 11.9K bytes
    - Viewed (0)
Back to top