Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for closing (0.13 sec)

  1. guava/src/com/google/common/io/CharSource.java

     *   <li><b>Convenience methods:</b> These are implementations of common operations that are
     *       typically implemented by opening a reader using one of the methods in the first category,
     *       doing something and finally closing the reader that was opened.
     * </ul>
     *
     * <p>Several methods in this class, such as {@link #readLines()}, break the contents of the source
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/ByteSink.java

     *   <li><b>Convenience methods:</b> These are implementations of common operations that are
     *       typically implemented by opening a stream using one of the methods in the first category,
     *       doing something and finally closing the stream or channel that was opened.
     * </ul>
     *
     * @since 14.0
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ByteSink {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 28 16:55:09 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. compat/maven-builder-support/src/main/java/org/apache/maven/building/Source.java

    /**
     * Provides access to the contents of a source independently of the backing store (e.g. file system, database, memory).
     *
     */
    public interface Source {
    
        /**
         * Gets a byte stream to the source contents. Closing the returned stream is the responsibility of the caller.
         *
         * @return A byte stream to the source contents, never {@code null}.
         * @throws IOException in case of IO issue
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenSessionBuilderSupplier.java

    /**
     * A simple {@link Supplier} of {@link SessionBuilder} instances, that on each call supplies newly
     * constructed instance. To create session out of builder, use {@link SessionBuilder#build()}. For proper closing
     * of sessions, use {@link CloseableSession#close()} method on built instance(s).
     * <p>
     * Extend this class and override methods to customize, if needed.
     *
     * @since 4.0.0
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/CharSink.java

     *   <li><b>Convenience methods:</b> These are implementations of common operations that are
     *       typically implemented by opening a writer using one of the methods in the first category,
     *       doing something and finally closing the writer that was opened.
     * </ul>
     *
     * <p>Any {@link ByteSink} may be viewed as a {@code CharSink} with a specific {@linkplain Charset
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                    if (channel != null) {
                        try {
                            channel.close();
                        } catch (IOException e) {
                            getLogger().debug("Error closing FileChannel for resolution tracking file: " + touchfile, e);
                        }
                    }
                }
            }
        }
    
        Date readLastUpdated(File touchfile, String key) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        // TODO(cgdecker): Add CharSource.slice?
        StringBuilder builder = new StringBuilder();
        Reader reader = concatenated.openStream(); // no need to worry about closing
        for (int i = 0; i < 8; i++) {
          builder.append((char) reader.read());
        }
        assertEquals(expected, builder.toString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Streams.java

      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private static void closeAll(BaseStream<?, ?>[] toClose) {
        // If one of the streams throws an exception, continue closing the others, then throw the
        // exception later. If more than one stream throws an exception, the later ones are added to the
        // first as suppressed exceptions. We don't catch Error on the grounds that it should be allowed
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Streams.java

      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private static void closeAll(BaseStream<?, ?>[] toClose) {
        // If one of the streams throws an exception, continue closing the others, then throw the
        // exception later. If more than one stream throws an exception, the later ones are added to the
        // first as suppressed exceptions. We don't catch Error on the grounds that it should be allowed
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  10. cmd/xl-storage.go

    	// errors on a previous write(2) operation are reported only on the final close() that releases
    	// the open file descriptor.
    	//
    	// Failing to check the return value when closing a file may lead to silent loss of data.
    	// This can especially be observed with NFS and with disk quota.
    	return w.Close()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top