public void clear() {
	if (size() == 0) return;
	buffer = new char[buffer.length];
	root.next = null;
	pos = 0;
	length = 0;
	curr = root;
    }
public void clear ( ) { if ( size ( ) == 0 ) return ; buffer = new char [ buffer . length ] ; root . next = null ; pos = 0 ; length = 0 ; curr = root ; }
clear the content of the buffer