void add(String piece) { queue.addLast(piece); charLength += piece.length; endCursor += piece.length; }