Interface CharacterOutput
-
- All Known Implementing Classes:
CharsWrapper.Builder,WriterOutput
public interface CharacterOutputInterface for outputs of characters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidwrite(char c)Writes a character.default voidwrite(char... chars)Writes an array of characters.voidwrite(char[] chars, int offset, int length)Writes a portion of an array of characters.default voidwrite(CharsWrapper cw)Writes all the characters in the given CharsWrapper.default voidwrite(java.lang.String s)Writes all the characters in the given String.voidwrite(java.lang.String s, int offset, int length)Writes a portion of a String.
-
-
-
Method Detail
-
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 writeoffset- the index to start atlength- the number of characters to write
-
write
default void write(java.lang.String s)
Writes all the characters in the given String.- Parameters:
s- the string to write
-
write
void write(java.lang.String s, int offset, int length)Writes a portion of a String.- Parameters:
s- the string to writeoffset- the index to start atlength- 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
-
-