Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for closeable3 (0.18 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final ExecutorService closingExecutor = newSingleThreadExecutor();
    
      final TestCloseable closeable1 = new TestCloseable("closeable1");
      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final ExecutorService closingExecutor = newSingleThreadExecutor();
    
      final TestCloseable closeable1 = new TestCloseable("closeable1");
      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Closeables.java

       *     IOException}.
       */
      public static void close(@CheckForNull Closeable closeable, boolean swallowIOException)
          throws IOException {
        if (closeable == null) {
          return;
        }
        try {
          closeable.close();
        } catch (IOException e) {
          if (swallowIOException) {
            logger.log(Level.WARNING, "IOException thrown while closing Closeable.", e);
          } else {
            throw e;
          }
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        }
      }
    
      private void doClose(Closeable closeable, boolean swallowException) throws IOException {
        doClose(closeable, swallowException, !swallowException);
      }
    
      // Close the closeable using the Closeables, passing in the swallowException
      // parameter. expectThrown determines whether we expect an exception to
      // be thrown by Closeables.close;
      private void doClose(Closeable closeable, boolean swallowException, boolean expectThrown)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CloseablesTest.java

        }
      }
    
      private void doClose(Closeable closeable, boolean swallowException) throws IOException {
        doClose(closeable, swallowException, !swallowException);
      }
    
      // Close the closeable using the Closeables, passing in the swallowException
      // parameter. expectThrown determines whether we expect an exception to
      // be thrown by Closeables.close;
      private void doClose(Closeable closeable, boolean swallowException, boolean expectThrown)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(
                new ClosingCallable<Closeable>() {
                  @Override
                  public Closeable call(DeferredCloser closer) throws Exception {
                    return closer.eventuallyClose(mockCloseable, executor);
                  }
                },
                executor);
        FluentFuture<Closeable> unused = closingFuture.finishToFuture();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/curl/io/ContentCache.java

     */
    package org.codelibs.curl.io;
    
    import java.io.ByteArrayInputStream;
    import java.io.Closeable;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.nio.file.Files;
    import java.util.logging.Logger;
    
    public class ContentCache implements Closeable {
    
        protected static final Logger logger = Logger.getLogger(ContentCache.class.getName());
    
    Java
    - Registered: Thu May 09 15:34:10 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 1.6K bytes
    - Viewed (1)
  8. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        boolean finalized = finalizeCount.tryAcquire(5, TimeUnit.SECONDS);
        assertTrue(finalized);
    
        Field sepFrqUserFrqF = sepFrqUserC.getField("frq");
        Closeable frq = (Closeable) sepFrqUserFrqF.get(null);
        frq.close();
    
        return new WeakReference<ClassLoader>(sepLoader);
      }
    
      private URL[] getClassPathUrls() {
        ClassLoader classLoader = getClass().getClassLoader();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.dict.stemmeroverride;
    
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.Closeable;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.Writer;
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Flushables.java

       *     method
       * @throws IOException if {@code swallowIOException} is false and {@link Flushable#flush} throws
       *     an {@code IOException}.
       * @see Closeables#close
       */
      public static void flush(Flushable flushable, boolean swallowIOException) throws IOException {
        try {
          flushable.flush();
        } catch (IOException e) {
          if (swallowIOException) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top