Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TYPE_FILESYSTEM (0.66 sec)

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

                  SmbResource c = new SmbFile(p, "foo/") ) {
                SmbResourceLocator fl = c.getLocator();
                assertEquals("1.2.3.4", fl.getServer());
                assertEquals(SmbConstants.TYPE_FILESYSTEM, fl.getType());
                assertEquals("share", fl.getShare());
                assertEquals("\\foo\\", fl.getUNCPath());
                assertEquals("smb://1.2.3.4/share/foo/", fl.getCanonicalURL());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 13:16:07 UTC 2020
    - 23K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileAttributesTest.java

        @Test
        public void testBaseFile () throws MalformedURLException, CIFSException {
            try ( SmbResource f = getDefaultShareRoot() ) {
                checkConnection(f);
                if ( f.getType() != SmbConstants.TYPE_FILESYSTEM ) {
                    assertEquals(SmbConstants.TYPE_SHARE, f.getType());
                }
            }
        }
    
    
        @Test
        public void testGetFreeSpace () throws CIFSException, MalformedURLException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileOutputStream.java

                }
    
                int w;
                do {
                    int blockSize = ( this.file.getType() == SmbConstants.TYPE_FILESYSTEM ) ? this.writeSizeFile : this.writeSize;
                    w = len > blockSize ? blockSize : len;
    
                    if ( this.smb2 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:14:04 UTC 2021
    - 11.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileInputStream.java

                SmbComReadAndXResponse response = new SmbComReadAndXResponse(th.getConfig(), b, off);
    
                int type = this.file.getType();
                int r, n;
                int blockSize = ( type == SmbConstants.TYPE_FILESYSTEM ) ? this.readSizeFile : this.readSize;
                do {
                    r = len > blockSize ? blockSize : len;
    
                    if ( log.isTraceEnabled() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResource.java

         *         itself.
         */
        String getName ();
    
    
        /**
         * Returns type of of object this <tt>SmbResource</tt> represents.
         * 
         * @return <tt>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER, TYPE_SHARE,
         * TYPE_PRINTER, TYPE_NAMED_PIPE</tt>, or <tt>TYPE_COMM</tt>.
         * @throws CIFSException
         */
        int getType () throws CIFSException;
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (1)
  6. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

         */
        @Override
        public int getType () throws CIFSException {
            if ( this.type == 0 ) {
                if ( getUNCPath().length() > 1 ) {
                    this.type = SmbConstants.TYPE_FILESYSTEM;
                }
                else if ( getShare() != null ) {
                    if ( getShare().equals("IPC$") ) {
                        this.type = SmbConstants.TYPE_NAMED_PIPE;
                    }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 20 08:24:53 UTC 2019
    - 23.9K bytes
    - Viewed (0)
Back to top