Change the buffer method name, added javadoc.