Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for isOpen (0.05 sec)

  1. src/test/java/jcifs/SmbPipeHandleTest.java

            /**
             * Verifies that the isOpen method returns true for an open handle.
             */
            @Test
            public void testIsOpen_ReturnsTrueWhenOpen() {
                when(smbPipeHandle.isOpen()).thenReturn(true);
                assertTrue(smbPipeHandle.isOpen(), "isOpen() should return true when the handle is open.");
            }
    
            /**
             * Verifies that the isOpen method returns false for a closed handle.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbPipeOutputStream.java

            super(handle.getPipe(), th, null, 0, 0, 0);
            this.handle = handle;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbFileOutputStream#isOpen()
         */
        @Override
        public boolean isOpen() {
            return this.handle.isOpen();
        }
    
        @Override
        protected synchronized SmbTreeHandleImpl ensureTreeConnected() throws CIFSException {
            return this.handle.ensureTreeConnected();
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

        }
    
        public String getUncPath() {
            return this.uncPath;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbPipeHandle#isOpen()
         */
        @Override
        public boolean isOpen() {
            return this.open && this.handle != null && this.handle.isValid();
        }
    
        /**
         *
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

         *
         * @return true if the stream is open, false otherwise
         */
        public boolean isOpen() {
            return file.isOpen();
        }
    
        void ensureOpen() throws IOException {
            // ensure file is open
            if (!file.isOpen()) {
                file.open(openFlags, access | SmbConstants.FILE_WRITE_DATA, SmbFile.ATTR_NORMAL, 0);
                if (append) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbPipeHandle.java

         */
        @Override
        void close() throws CIFSException;
    
        /**
         * Tests whether this file descriptor is open and valid.
         *
         * @return whether the FD is open and valid
         */
        boolean isOpen();
    
        /**
         * Tests whether this file descriptor was previously open but has become invalid.
         *
         * @return whether the FD was previously open but became invalid
         */
        boolean isStale();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

        }
    
        @Override
        protected void doSendFragment(final byte[] buf, final int off, final int length, final boolean isDirect) throws IOException {
            if (out != null && !out.isOpen()) {
                throw new IOException("DCERPC pipe is no longer open");
            }
    
            if (in == null) {
                in = (SmbFileInputStream) pipe.getNamedPipeInputStream();
            }
            if (out == null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            if (len <= 0) {
                return 0;
            }
            final long start = fp;
    
            // ensure file is open
            if (!file.isOpen()) {
                file.open(openFlags, 0, SmbFile.ATTR_NORMAL, options);
            }
    
            int r, n;
            final SmbComReadAndXResponse response = new SmbComReadAndXResponse(b, off);
            do {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java

            return response;
        }
    
        @Override
        public void reset() throws IOException {
            if (socketChannel != null && socketChannel.isOpen()) {
                socketChannel.close();
            }
            connect();
        }
    
        @Override
        public int read(ByteBuffer buffer, long remoteAddress, int remoteKey, int length) throws IOException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileOutputStream.java

            write(b, 0, b.length);
        }
    
        /**
         * Tests whether the output stream is currently open.
         *
         * @return whether the stream is open
         */
        public boolean isOpen() {
            return this.handle != null && this.handle.isValid();
        }
    
        /**
         * Ensures that the file handle is open and returns it.
         *
         * @return the open file handle
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbTree.java

         */
        int connectionState;
        int tid;
    
        String share;
        String service = "?????";
        String service0;
        SmbSession session;
        boolean inDfs, inDomainDfs;
        int tree_num; // used by SmbFile.isOpen
    
        SmbTree(final SmbSession session, final String share, final String service) {
            this.session = session;
            this.share = share.toUpperCase();
            if (service != null && !service.startsWith("??")) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top