- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for TYPE_SHARE (0.11 sec)
-
src/test/java/jcifs/tests/FileLocationTest.java
SmbResource c = new SmbFile(p, "share/") ) { SmbResourceLocator fl = c.getLocator(); assertEquals("1.2.3.4", fl.getServer()); assertEquals(SmbConstants.TYPE_SHARE, fl.getType()); assertEquals("share", fl.getShare()); assertEquals("\\", fl.getUNCPath()); assertEquals("smb://1.2.3.4/share/", 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) -
src/main/java/jcifs/SmbResourceLocator.java
/** * Returns type of of object this <tt>SmbFile</tt> represents. * * @return <tt>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER, * TYPE_NAMED_PIPE</tt>, or <tt>TYPE_SHARE</tt> in which case it may be either <tt>TYPE_SHARE</tt>, * <tt>TYPE_PRINTER</tt> or <tt>TYPE_COMM</tt>. * @throws CIFSException */ int getType () throws CIFSException; /**
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbShareInfo.java
*/ 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; } public long createTime() { return 0L; } public long lastModified() {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java
*/ switch ( this.type & 0xFFFF ) { case 1: return SmbConstants.TYPE_PRINTER; case 3: return SmbConstants.TYPE_NAMED_PIPE; } return SmbConstants.TYPE_SHARE; } @Override public int getAttributes () { return SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY; } @Override public long createTime () {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Feb 17 09:30:57 UTC 2019 - 3.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
attrExpiration = sizeExpiration = 0; } /** * Returns the length of this <tt>SmbFile</tt> in bytes. If this object * is a <tt>TYPE_SHARE</tt> the total capacity of the disk shared in * bytes is returned. If this object is a directory or a type other than * <tt>TYPE_SHARE</tt>, 0L is returned. * * @return The length of the file in bytes or 0 if this * <code>SmbFile</code> is not a file. * @throws SmbException
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Mon Mar 13 12:00:57 UTC 2023 - 107.9K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
/** * Returns the length of this <tt>SmbResource</tt> in bytes. If this object * is a <tt>TYPE_SHARE</tt> the total capacity of the disk shared in * bytes is returned. If this object is a directory or a type other than * <tt>TYPE_SHARE</tt>, 0L is returned. * * @return The length of the file in bytes or 0 if this * <code>SmbResource</code> is not a file.
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Dec 20 14:09:34 UTC 2020 - 26K bytes - Viewed (1) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
if ( getShare().equals("IPC$") ) { this.type = SmbConstants.TYPE_NAMED_PIPE; } else { this.type = SmbConstants.TYPE_SHARE; } } else if ( this.url.getAuthority() == null || this.url.getAuthority().isEmpty() ) { this.type = SmbConstants.TYPE_WORKGROUP; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sat Jul 20 08:24:53 UTC 2019 - 23.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/FileAttributesTest.java
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 { try ( SmbResource f = getDefaultShareRoot() ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
*/ static final int TYPE_SERVER = 0x04; /** * Returned by {@link jcifs.SmbResource#getType()} if the resource this <tt>SmbFile</tt> * represents is a share. */ static final int TYPE_SHARE = 0x08; /** * Returned by {@link jcifs.SmbResource#getType()} if the resource this <tt>SmbFile</tt> * represents is a named pipe. */ static final int TYPE_NAMED_PIPE = 0x10; /**
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
return SmbConstants.TYPE_PRINTER; } else if ( "COMM".equals(connectedService) ) { return SmbConstants.TYPE_COMM; } return SmbConstants.TYPE_SHARE; } /** * @return the service */ public String getService () { return this.service; } /** * @return the share */
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:06:39 UTC 2023 - 29.6K bytes - Viewed (0)