Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for openInputStream (0.08 seconds)

  1. src/test/java/jcifs/SmbResourceTest.java

                // Given
                when(mockResource.openInputStream()).thenReturn(mockInputStream);
                when(mockResource.openInputStream(anyInt())).thenReturn(mockInputStream);
                when(mockResource.openInputStream(anyInt(), anyInt(), anyInt())).thenReturn(mockInputStream);
    
                // When
                InputStream is1 = mockResource.openInputStream();
                InputStream is2 = mockResource.openInputStream(1);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/FileBackedOutputStream.java

        final State state;
    
        FbosByteSource(State state) {
          this.state = state;
        }
    
        @Override
        public InputStream openStream() throws IOException {
          return state.openInputStream();
        }
      }
    
      /**
       * Returns a readable {@link ByteSource} view of the data that has been written to this stream.
       *
       * @since 15.0
       */
      public ByteSource asByteSource() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 17:30:49 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/SmbResource.java

         */
        InputStream openInputStream(int sharing) throws CIFSException;
    
        /**
         * Opens an input stream reading the file (read only, sharable)
         *
         * @return input stream, needs to be closed when finished
         * @throws CIFSException if an error occurs accessing the resource
         */
        InputStream openInputStream() throws CIFSException;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
  4. android/guava/src/com/google/common/io/Closer.java

     *
     * <p>This class is intended to be used in the following pattern:
     *
     * {@snippet :
     * Closer closer = Closer.create();
     * try {
     *   InputStream in = closer.register(openInputStream());
     *   OutputStream out = closer.register(openOutputStream());
     *   // do stuff
     * } catch (Throwable e) {
     *   // ensure that any checked exception types other than IOException that could be thrown are
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbFile.java

        @Override
        public SmbFileInputStream openInputStream() throws SmbException {
            return new SmbFileInputStream(this);
        }
    
        @Override
        public SmbFileInputStream openInputStream(final int sharing) throws SmbException {
            return openInputStream(0, O_RDONLY, sharing);
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
  6. api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java

            try {
                FileObject inputFile = processingEnv.getFiler().getResource(StandardLocation.CLASS_OUTPUT, "", path);
                try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputFile.openInputStream()))) {
                    String line;
                    StringBuilder contentBuilder = new StringBuilder();
                    while ((line = reader.readLine()) != null) {
                        if (!line.trim().startsWith("#")) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 7.8K bytes
    - Click Count (0)
Back to Top