railo.commons.lang
Class DevNullCharBuffer

java.lang.Object
  extended by railo.commons.lang.CharBuffer
      extended by railo.commons.lang.DevNullCharBuffer

public final class DevNullCharBuffer
extends CharBuffer


Constructor Summary
DevNullCharBuffer()
           
 
Method Summary
 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()
          return the content of the buffer as string
 void writeOut(Writer writer)
          method to writeout content of the char buffer in a writer, this ist faster than get char array with (toCharArray()) and write this in writer.
 
Methods inherited from class railo.commons.lang.CharBuffer
append, append, append, getBytes, writeOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DevNullCharBuffer

public DevNullCharBuffer()
Method Detail

append

public void append(char[] c)
Description copied from class: CharBuffer
method to appennd a charr array to the buffer

Overrides:
append in class CharBuffer
Parameters:
c - char array to append
See Also:
CharBuffer.append(char[])

append

public void append(String str)
Description copied from class: CharBuffer
Method to append a string to char buffer

Overrides:
append in class CharBuffer
Parameters:
str - String to append
See Also:
CharBuffer.append(java.lang.String)

clear

public void clear()
Description copied from class: CharBuffer
clear the content of the buffer

Overrides:
clear in class CharBuffer
See Also:
CharBuffer.clear()

size

public int size()
Overrides:
size in class CharBuffer
Returns:
returns the size of the content of the buffer
See Also:
CharBuffer.size()

toCharArray

public char[] toCharArray()
Description copied from class: CharBuffer
return content of the Char Buffer as char array

Overrides:
toCharArray in class CharBuffer
Returns:
char array
See Also:
CharBuffer.toCharArray()

toString

public String toString()
Description copied from class: CharBuffer
return the content of the buffer as string

Overrides:
toString in class CharBuffer
See Also:
Object.toString()

writeOut

public void writeOut(Writer writer)
              throws IOException
Description copied from class: CharBuffer
method to writeout content of the char buffer in a writer, this ist faster than get char array with (toCharArray()) and write this in writer.

Overrides:
writeOut in class CharBuffer
Parameters:
writer - writer to write inside
Throws:
IOException
See Also:
CharBuffer.writeOut(java.io.Writer)


Copyright © 2012 Railo