Interface SimpleWriter

All Superinterfaces:
Appendable
All Known Implementing Classes:
BufferSimpleWriter, DefaultSimpleWriter

public interface SimpleWriter extends Appendable
A simple writer interface.

Similar to a subset from Writer, but with newLine() method added, similar to BufferedWriter.newLine() but with the difference that the newline not necessarily uses the line.separator system property and instead may target another system.

  • Method Summary

    Modifier and Type
    Method
    Description
    default SimpleWriter
    append(char c)
     
    default SimpleWriter
     
    default SimpleWriter
    append(CharSequence csq, int start, int end)
     
    default char
    Get the last character processed.
    void
    Write a newline according to the characteristics of the target platform.
    default void
    Remove the last character found in this buffer, if any.
    default void
    unwrite(int numChars)
    Remove the last numChars characters found in this buffer.
    void
    write(char c)
    Write a character.
    void
    write(char[] cbuf, int off, int len)
    Write a sequence of characters from an array.
    default void
    write(int num)
    Write an integer.
    void
    Write a character sequence.