Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 37 for is_open (0.32 seconds)

  1. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

                    SmbConstants.DEFAULT_SHARING);
    
            // When & Then
            assertTrue(outputStream.isOpen());
    
            when(mockFileHandle.isValid()).thenReturn(false);
            assertFalse(outputStream.isOpen());
        }
    
        @Test
        void testWriteAfterClose() throws IOException, CIFSException {
            // Given
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  2. 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 {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  3. internal/ioutil/read_file.go

    import (
    	"io"
    	"io/fs"
    	"os"
    
    	"github.com/minio/minio/internal/disk"
    )
    
    var (
    	// OpenFileDirectIO allows overriding default function.
    	OpenFileDirectIO = disk.OpenFileDirectIO
    	// OsOpen allows overriding default function.
    	OsOpen = os.Open
    	// OsOpenFile allows overriding default function.
    	OsOpenFile = os.OpenFile
    )
    
    // ReadFileWithFileInfo reads the named file and returns the contents.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Click Count (0)
  4. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

        /**
         * Generates an HTML opening or closing tag with appropriate language attribute.
         *
         * @param isOpen true to generate opening HTML tag, false for closing tag
         * @return HTML opening tag with language attribute or closing tag
         */
        public static String html(final boolean isOpen) {
            if (isOpen) {
                return "<html lang=\"" + LaRequestUtil.getOptionalRequest().map(req -> {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.4K bytes
    - Click Count (1)
  6. 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();
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

       *
       * Note that the input stream may continue to yield data even after a stream reports itself as
       * not open. This is because input data is buffered.
       */
      val isOpen: Boolean
        get() {
          withLock {
            if (errorCode != null) {
              return false
            }
            if ((source.finished || source.closed) &&
              (sink.finished || sink.closed) &&
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 07 18:57:05 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

                      override fun peek() = exchange.peekTrailers()
    
                      override fun get(): Headers {
                        val source = responseBody.source()
                        if (source.isOpen) {
                          source.skipAll()
                        }
                        return peek() ?: error("null trailers after exhausting response body?!")
                      }
                    },
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Oct 30 13:46:58 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  9. 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("??")) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  10. 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) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.5K bytes
    - Click Count (0)
Back to Top