Interface CharacterOutput

All Known Implementing Classes:
CharsWrapper.Builder, WriterOutput

public interface CharacterOutput
Interface for outputs of characters.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(char c)
    Writes a character.
    default void
    write(char... chars)
    Writes an array of characters.
    void
    write(char[] chars, int offset, int length)
    Writes a portion of an array of characters.
    default void
    Writes all the characters in the given CharsWrapper.
    default void
    Writes all the characters in the given String.
    void
    write(String s, int offset, int length)
    Writes a portion of a String.
  • Method Details

    • write

      void write(char c)
      Writes a character.
      Parameters:
      c - the character to write
    • write

      default void write(char... chars)
      Writes an array of characters.
      Parameters:
      chars - the characters to write
    • write

      void write(char[] chars, int offset, int length)
      Writes a portion of an array of characters.
      Parameters:
      chars - the characters to write
      offset - the index to start at
      length - the number of characters to write
    • write

      default void write(String s)
      Writes all the characters in the given String.
      Parameters:
      s - the string to write
    • write

      void write(String s, int offset, int length)
      Writes a portion of a String.
      Parameters:
      s - the string to write
      offset - the index to start at
      length - the number of characters to write
    • write

      default void write(CharsWrapper cw)
      Writes all the characters in the given CharsWrapper.
      Parameters:
      cw - the CharsWrapper to write