Use the Buffer class