Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Appendable (0.07 sec)

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

       * Does not close {@code appendable} if it is {@code Closeable}.
       *
       * @return the number of characters copied
       * @throws IOException if an I/O error occurs while reading from this source or writing to {@code
       *     appendable}
       */
      @CanIgnoreReturnValue
      public long copyTo(Appendable appendable) throws IOException {
    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-tests/test/com/google/common/base/JoinerTest.java

          throw new AssertionError(e);
        }
      }
    
      private static final Appendable NASTY_APPENDABLE =
          new Appendable() {
            @Override
            public Appendable append(@Nullable CharSequence csq) throws IOException {
              throw new IOException();
            }
    
            @Override
            public Appendable append(@Nullable CharSequence csq, int start, int end)
                throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

            return in.read(cbuf, off, Math.max(len - 1024, 0));
          }
        };
      }
    
      /** Wrap an appendable in an appendable to defeat any type specific optimizations. */
      private static Appendable wrapAsGenericAppendable(final Appendable a) {
        return new Appendable() {
    
          @Override
          public Appendable append(CharSequence csq) throws IOException {
            a.append(csq);
            return this;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharStreamsTest.java

            return in.read(cbuf, off, Math.max(len - 1024, 0));
          }
        };
      }
    
      /** Wrap an appendable in an appendable to defeat any type specific optimizations. */
      private static Appendable wrapAsGenericAppendable(final Appendable a) {
        return new Appendable() {
    
          @Override
          public Appendable append(CharSequence csq) throws IOException {
            a.append(csq);
            return this;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/BaseEncoding.java

          }
        };
      }
    
      static Appendable separatingAppendable(
          Appendable delegate, String separator, int afterEveryChars) {
        checkNotNull(delegate);
        checkNotNull(separator);
        checkArgument(afterEveryChars > 0);
        return new Appendable() {
          int charsUntilSeparator = afterEveryChars;
    
          @Override
          public Appendable append(char c) throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilder.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * Message builder that supports configurable styling.
     *
     * @since 4.0.0
     * @see MessageBuilderFactory
     */
    public interface MessageBuilder extends Appendable {
    
        /**
         * Append message content in trace style.
         * By default, bold magenta
         *
         * @param message the message to append
         * @return the current builder
         */
        @Nonnull
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Nov 02 09:29:52 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertThat(ArbitraryInstances.get(Appendable.class).toString()).isEmpty();
        assertThat(ArbitraryInstances.get(StringBuilder.class).toString()).isEmpty();
        assertThat(ArbitraryInstances.get(StringBuffer.class).toString()).isEmpty();
        assertFreshInstanceReturned(
            ArrayList.class,
            HashMap.class,
            Appendable.class,
            StringBuilder.class,
            StringBuffer.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Files.java

      }
    
      /**
       * Copies all characters from a file to an appendable object, using the given character set.
       *
       * @param from the source file
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
       *     helpful predefined constants
       * @param to the appendable object
       * @throws IOException if an I/O error occurs
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/Files.java

      }
    
      /**
       * Copies all characters from a file to an appendable object, using the given character set.
       *
       * @param from the source file
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
       *     helpful predefined constants
       * @param to the appendable object
       * @throws IOException if an I/O error occurs
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        checkArgument(
            implementations.put(type, implementation) == null,
            "Implementation for %s was already registered",
            type);
      }
    
      static {
        setImplementation(Appendable.class, StringBuilder.class);
        setImplementation(BlockingQueue.class, LinkedBlockingDeque.class);
        setImplementation(BlockingDeque.class, LinkedBlockingDeque.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top