Class WriterOutput

  • All Implemented Interfaces:
    CharacterOutput

    public final class WriterOutput
    extends java.lang.Object
    implements CharacterOutput
    Writes the characters in a Writer.
    • Constructor Summary

      Constructors 
      Constructor Description
      WriterOutput​(java.io.Writer writer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(char c)
      Writes a character.
      void write​(char[] chars, int offset, int length)
      Writes a portion of an array of characters.
      void write​(java.lang.String s, int offset, int length)
      Writes a portion of a String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WriterOutput

        public WriterOutput​(java.io.Writer writer)
    • Method Detail

      • write

        public void write​(char c)
        Description copied from interface: CharacterOutput
        Writes a character.
        Specified by:
        write in interface CharacterOutput
        Parameters:
        c - the character to write
      • write

        public void write​(char[] chars,
                          int offset,
                          int length)
        Description copied from interface: CharacterOutput
        Writes a portion of an array of characters.
        Specified by:
        write in interface CharacterOutput
        Parameters:
        chars - the characters to write
        offset - the index to start at
        length - the number of characters to write
      • write

        public void write​(java.lang.String s,
                          int offset,
                          int length)
        Description copied from interface: CharacterOutput
        Writes a portion of a String.
        Specified by:
        write in interface CharacterOutput
        Parameters:
        s - the string to write
        offset - the index to start at
        length - the number of characters to write