Returns a string representing the state of this byte buffer. @return a string representing the state of this byte buffer.
()
| 1046 | * @return a string representing the state of this byte buffer. |
| 1047 | */ |
| 1048 | @Override |
| 1049 | public String toString() { |
| 1050 | StringBuilder buf = new StringBuilder(); |
| 1051 | buf.append(getClass().getName()); |
| 1052 | buf.append(", status: capacity="); //$NON-NLS-1$ |
| 1053 | buf.append(capacity()); |
| 1054 | buf.append(" position="); //$NON-NLS-1$ |
| 1055 | buf.append(position()); |
| 1056 | buf.append(" limit="); //$NON-NLS-1$ |
| 1057 | buf.append(limit()); |
| 1058 | return buf.toString(); |
| 1059 | } |
| 1060 | } |