Gets the length of the erroneous input. The length is only meaningful to a malformed-input error or an unmappble character error. @return the length, as an integer, of this object's erroneous input. @throws UnsupportedOperationException if this result is an overflow or underflow.
()
| 214 | * if this result is an overflow or underflow. |
| 215 | */ |
| 216 | public int length() throws UnsupportedOperationException { |
| 217 | if (this.type == TYPE_MALFORMED_INPUT |
| 218 | || this.type == TYPE_UNMAPPABLE_CHAR) { |
| 219 | return this.length; |
| 220 | } |
| 221 | // niochar.09=The length of the erroneous input is only meaningful to |
| 222 | // a malformed-input error or an unmappble character error |
| 223 | throw new UnsupportedOperationException(Messages |
| 224 | .getString("niochar.09")); //$NON-NLS-1$ |
| 225 | } |
| 226 | |
| 227 | /** |
| 228 | * Throws an exception corresponding to this coder result. |