Code example for Deque

Methods: clear

0
	public void endRecord() { 
		builder.append('}');
		bracketStack.clear();
		getReceiver().process(builder.toString());
		builder = new StringBuilder();
		commaStack.clear();
	} 
 
	@Override 
	public void startEntity(final String name) {
 
		if (commaNeeded) {
			builder.append(", ");
		} 
		commaNeeded = true;
 
		if (name.endsWith(ARRAY_MARKER)) {
			builder.append("\"" + escape(name.substring(0, name.length() - ARRAY_MARKER.length())) + "\": [ ");
			bracketStack.push(Character.valueOf(']'));
		} else { 
			if (inArray()) {