Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for SmbFile (0.14 sec)

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

            Assert.assertTrue(f1 instanceof SmbFile);
            Assert.assertTrue(f2 instanceof SmbFile);
            try ( SmbTreeHandleInternal th1 = (SmbTreeHandleInternal) ( (SmbFile) f1 ).getTreeHandle();
                  SmbTreeHandleInternal th2 = (SmbTreeHandleInternal) ( (SmbFile) f2 ).getTreeHandle();
                  SmbSessionInternal sess1 = th1.getSession().unwrap(SmbSessionInternal.class);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  4. 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)
  5. 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.
         */
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/DosFileFilter.java

         * support filtering by all attributes (e.g. even though ATTR_DIRECTORY was
         * specified the server may still return objects that are not directories).
         */
        @Override
        public boolean accept ( SmbFile file ) throws SmbException {
            return ( file.getAttributes() & this.attributes ) != 0;
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/TransactNamedPipeOutputStream.java

        private byte[] tmp = new byte[1];
        private boolean dcePipe;
    
        TransactNamedPipeOutputStream( SmbNamedPipe pipe ) throws IOException {
            super(pipe, false, (pipe.pipeType & 0xFFFF00FF) | SmbFile.O_EXCL);
            this.pipe = pipe;
            this.dcePipe = ( pipe.pipeType & SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT ) == SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT;
            path = pipe.unc;
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.6K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/jcifs/smb/Handler.java

        }
    
    
        @Override
        public URLConnection openConnection ( URL u ) throws IOException {
            if ( log.isDebugEnabled() ) {
                log.debug("Opening file " + u);
            }
            return new SmbFile(u, getTransportContext());
        }
    
    
        /**
         * @return
         */
        private CIFSContext getTransportContext () {
            if ( this.transportContext == null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 06 09:14:24 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  10. 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)
Back to top