Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for frush (0.17 sec)

  1. android/guava-tests/test/com/google/common/io/AppendableWriterTest.java

          return this;
        }
    
        @Override
        public Appendable append(CharSequence csq, int start, int end) {
          result.append(csq, start, end);
          return this;
        }
    
        @Override
        public void flush() {
          flushed = true;
        }
    
        @Override
        public void close() {
          closed = true;
        }
      }
    
      public void testWriteMethods() throws IOException {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CountingOutputStream.java

        out.write(b);
        count++;
      }
    
      // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
      // it silently ignores any exception thrown by flush(). Instead, just close the delegate stream.
      // It should flush itself if necessary.
      @Override
      public void close() throws IOException {
        out.close();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/CharSink.java

        checkNotNull(charSequence);
    
        Closer closer = Closer.create();
        try {
          Writer out = closer.register(openStream());
          out.append(charSequence);
          out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          throws IOException {
        if (singleByte) {
          for (int i = off; i < off + len; i++) {
            out.write(b[i]);
          }
        } else {
          out.write(b, off, len);
        }
        out.flush(); // for coverage
      }
    
      // TODO(chrisn): only works if we ensure we have crossed file threshold
    
      public void testWriteErrorAfterClose() throws Exception {
        byte[] data = newPreFilledByteArray(100);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        List<Object> equalArgs = Lists.newArrayList(args);
        for (int i = 0; i < args.size(); i++) {
          Parameter param = params.get(i);
          Object arg = args.get(i);
          // Use new fresh value generator because 'args' were populated with new fresh generator each.
          // Two newFreshValueGenerator() instances should normally generate equal value sequence.
          Object shouldBeEqualArg = generateDummyArg(param, newFreshValueGenerator());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

          Object instance = ArbitraryInstances.get(mutableClass);
          assertNotNull("Expected to return non-null for: " + mutableClass, instance);
          assertNotSame(
              "Expected to return fresh instance for: " + mutableClass,
              instance,
              ArbitraryInstances.get(mutableClass));
        }
      }
    
      private enum EmptyEnum {}
    
      private enum Direction {
        UP,
        DOWN
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MultimapBuilder.java

        }
      }
    
      private enum LinkedListSupplier implements Supplier<List<?>> {
        INSTANCE;
    
        public static <V extends @Nullable Object> Supplier<List<V>> instance() {
          // Each call generates a fresh LinkedList, which can serve as a List<V> for any V.
          @SuppressWarnings({"rawtypes", "unchecked"})
          Supplier<List<V>> result = (Supplier) INSTANCE;
          return result;
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashSet.java

          }
        }
        resizeMeMaybe(newSize);
        insertEntry(newEntryIndex, object, hash, mask);
        this.size = newSize;
        incrementModCount();
        return true;
      }
    
      /**
       * Creates a fresh entry with the specified object at the specified position in the entry arrays.
       */
      void insertEntry(int entryIndex, @ParametricNullness E object, int hash, int mask) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactHashMap.java

          }
        }
        resizeMeMaybe(newSize);
        insertEntry(newEntryIndex, key, value, hash, mask);
        this.size = newSize;
        incrementModCount();
        return null;
      }
    
      /**
       * Creates a fresh entry with the specified object at the specified position in the entry arrays.
       */
      void insertEntry(
          int entryIndex, @ParametricNullness K key, @ParametricNullness V value, int hash, int mask) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/TestWriter.java

        super.write(c);
        flush(); // flush write to TestOutputStream to get its behavior
      }
    
      @Override
      public void write(char[] cbuf, int off, int len) throws IOException {
        super.write(cbuf, off, len);
        flush();
      }
    
      @Override
      public void write(String str, int off, int len) throws IOException {
        super.write(str, off, len);
        flush();
      }
    
      public boolean closed() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
Back to top