MCPcopy Create free account
hub / github.com/davidgiven/luje / length

Method length

lib/java/nio/charset/CoderResult.java:216–225  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.

Callers 2

encodeMethod · 0.95
decodeMethod · 0.95

Calls 1

getStringMethod · 0.95

Tested by

no test coverage detected