Interface CharacterOutput
- All Known Implementing Classes:
CharsWrapper.Builder,WriterOutput
public interface CharacterOutput
Interface for outputs of characters.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(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 voidWrites all the characters in the given String.voidWrites 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 writeoffset- the index to start atlength- the number of characters to write
-
write
Writes all the characters in the given String.- Parameters:
s- the string to write
-
write
Writes a portion of a String.- Parameters:
s- the string to writeoffset- the index to start atlength- the number of characters to write
-
write
Writes all the characters in the given CharsWrapper.- Parameters:
cw- the CharsWrapper to write
-