Class WriterOutput
- java.lang.Object
-
- com.electronwill.nightconfig.core.io.WriterOutput
-
- All Implemented Interfaces:
CharacterOutput
public final class WriterOutput extends java.lang.Object implements CharacterOutput
Writes the characters in aWriter.
-
-
Constructor Summary
Constructors Constructor Description WriterOutput(java.io.Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(char c)Writes a character.voidwrite(char[] chars, int offset, int length)Writes a portion of an array of characters.voidwrite(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
-
Methods inherited from interface com.electronwill.nightconfig.core.io.CharacterOutput
write, write, write
-
-
-
-
Method Detail
-
write
public void write(char c)
Description copied from interface:CharacterOutputWrites a character.- Specified by:
writein interfaceCharacterOutput- Parameters:
c- the character to write
-
write
public void write(char[] chars, int offset, int length)Description copied from interface:CharacterOutputWrites a portion of an array of characters.- Specified by:
writein interfaceCharacterOutput- Parameters:
chars- the characters to writeoffset- the index to start atlength- the number of characters to write
-
write
public void write(java.lang.String s, int offset, int length)Description copied from interface:CharacterOutputWrites a portion of a String.- Specified by:
writein interfaceCharacterOutput- Parameters:
s- the string to writeoffset- the index to start atlength- the number of characters to write
-
-