Returns a string representing the current remaining chars of this buffer. @return a string representing the current remaining chars of this buffer.
()
| 685 | * @return a string representing the current remaining chars of this buffer. |
| 686 | */ |
| 687 | @Override |
| 688 | public String toString() { |
| 689 | StringBuilder strbuf = new StringBuilder(); |
| 690 | for (int i = position; i < limit; i++) { |
| 691 | strbuf.append(get(i)); |
| 692 | } |
| 693 | return strbuf.toString(); |
| 694 | } |
| 695 | |
| 696 | /** |
| 697 | * Writes the given char to the current position and increases the position |