Class WriterOutput

java.lang.Object
com.electronwill.nightconfig.core.io.WriterOutput
All Implemented Interfaces:
CharacterOutput

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

    • WriterOutput

      public WriterOutput(Writer writer)
  • Method Details

    • 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(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