public final class DevNullCharBuffer extends CharBuffer
Constructor and Description |
---|
DevNullCharBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
append(char[] c)
method to appennd a charr array to the buffer
|
void |
append(String str)
Method to append a string to char buffer
|
void |
clear()
clear the content of the buffer
|
int |
size() |
char[] |
toCharArray()
return content of the Char Buffer as char array
|
String |
toString() |
void |
writeOut(Writer writer)
method to writeout content of the char buffer in a writer,
this is faster than get char array with (toCharArray()) and write this
in writer.
|
public DevNullCharBuffer()
public void append(char[] c)
CharBuffer
append
in class CharBuffer
c
- char array to appendpublic void append(String str)
CharBuffer
append
in class CharBuffer
str
- String to appendpublic void clear()
CharBuffer
clear
in class CharBuffer
public int size()
size
in class CharBuffer
public char[] toCharArray()
CharBuffer
toCharArray
in class CharBuffer
public String toString()
toString
in class CharBuffer
public void writeOut(Writer writer) throws IOException
CharBuffer
writeOut
in class CharBuffer
writer
- writer to write insideIOException
Copyright © 2015 Lucee