- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 66 for SmbFile (0.16 sec)
-
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) -
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) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
* * @param file An <code>SmbFile</code> representing the file to write to * @param append Append to the end of file */ public SmbFileOutputStream( SmbFile file, boolean append ) throws SmbException, MalformedURLException, UnknownHostException { this( file, append, append ? SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_APPEND : SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_TRUNC );
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 9.2K bytes - Viewed (0) -
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) -
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; } }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 8.1K bytes - Viewed (0) -
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) -
src/test/java/jcifs/tests/FileLocationTest.java
public void testRelativeWhitespaceStart () throws Exception { try ( SmbResource r = new SmbFile("smb://0.0.0.0/asdasf/", getContext()); SmbResource c = new SmbFile(r, " test") ) { assertEquals(' ', c.getName().charAt(0)); assertEquals(" test", c.getName()); try ( SmbFile t = new SmbFile(c.getLocator().getURL(), getContext()) ) { assertEquals(" test", t.getName());
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Wed Jan 08 13:16:07 GMT 2020 - 23K bytes - Viewed (0) -
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; }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/TimeoutTest.java
// use separate context here as the settings stick to the transport CIFSContext ctx = fastIdle(withTestNTLMCredentials(getNewContext())); try ( SmbFile r = new SmbFile(getTestShareURL(), ctx); SmbFile f = new SmbFile(r, makeRandomName()) ) { int soTimeout = ctx.getConfig().getSoTimeout(); f.createNewFile(); try { SmbTransportInternal t;
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 12.4K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
* represents is a server. */ 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>
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 8.9K bytes - Viewed (0)