de.hedenus.mobilexml
Class CharBuffer

java.lang.Object
  extended by de.hedenus.mobilexml.CharBuffer

public class CharBuffer
extends java.lang.Object

A buffer for characters.

Author:
Michael Hedenus

Constructor Summary
CharBuffer(int initialCapacity)
           
 
Method Summary
 CharBuffer append(char c)
           
 CharBuffer append(java.lang.String s)
           
 char charAt(int i)
           
 boolean isContainsOnlyWhitespace()
           
 int parseInt(int radix)
          Parses the content of the buffer as int.
 void reset()
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharBuffer

public CharBuffer(int initialCapacity)
Method Detail

append

public CharBuffer append(java.lang.String s)

append

public CharBuffer append(char c)

reset

public void reset()

isContainsOnlyWhitespace

public boolean isContainsOnlyWhitespace()

size

public int size()

charAt

public char charAt(int i)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

parseInt

public int parseInt(int radix)
             throws java.lang.NumberFormatException
Parses the content of the buffer as int.

Throws:
java.lang.NumberFormatException