Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for crypto (0.17 sec)

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

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        source.copyTo(out);
        assertExpectedBytes(out.toByteArray());
      }
    
      public void testCopyTo_byteSink() throws IOException {
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
        // HERESY! but it's ok just for this I guess
        source.copyTo(
            new ByteSink() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    with a round face, and large eyes like a frog; and both footmen,
    Alice noticed, had powdered hair that curled all over their
    heads.  She felt very curious to know what it was all about, and
    crept a little way out of the wood to listen.
    
      The Fish-Footman began by producing from under his arm a great
    letter, nearly as large as himself, and this he handed over to
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertFalse(out.closed());
        source.copyTo(out);
        assertFalse(out.closed());
      }
    
      public void testClosesOnErrors_copyingToByteSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
          TestByteSource okSource = new TestByteSource(bytes);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        StringBuilder builder = new StringBuilder();
    
        assertEquals(expected.length(), source.copyTo(builder));
    
        assertExpectedString(builder.toString());
      }
    
      public void testCopyTo_charSink() throws IOException {
        TestCharSink sink = new TestCharSink();
    
        assertEquals(expected.length(), source.copyTo(sink));
    
        assertExpectedString(sink.getString());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTester.java

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        source.copyTo(out);
        assertExpectedBytes(out.toByteArray());
      }
    
      public void testCopyTo_byteSink() throws IOException {
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
        // HERESY! but it's ok just for this I guess
        source.copyTo(
            new ByteSink() {
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Resources.java

       * @param from the URL to read from
       * @param to the output stream
       * @throws IOException if an I/O error occurs
       */
      public static void copy(URL from, OutputStream to) throws IOException {
        asByteSource(from).copyTo(to);
      }
    
      /**
       * Returns a {@code URL} pointing to {@code resourceName} if the resource is found using the
       * {@linkplain Thread#getContextClassLoader() context class loader}. In simple environments, the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertFalse(writer.closed());
        source.copyTo(writer);
        assertFalse(writer.closed());
      }
    
      public void testClosesOnErrors_copyingToCharSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
          TestCharSource okSource = new TestCharSource(STRING);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestCharSink(option)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertFalse(out.closed());
        source.copyTo(out);
        assertFalse(out.closed());
      }
    
      public void testClosesOnErrors_copyingToByteSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
          TestByteSource okSource = new TestByteSource(bytes);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

          TestByteSource failSource = new TestByteSource(new byte[10], option);
          TestByteSink okSink = new TestByteSink();
          assertThrows(IOException.class, () -> failSource.copyTo(okSink));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if source.newInputStream() throws).
          assertTrue(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/CharSource.java

       *       one with {@link CharSequence#charAt(int)}.
       *   <li>use {@link Appendable#append(CharSequence)} in {@link #copyTo(Appendable)} and {@link
       *       #copyTo(CharSink)}. We know this is correct since strings are immutable and so the length
       *       can't change, and it is faster because many writers and appendables are optimized for
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
Back to top