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

Method unmappableForLength

lib/java/nio/charset/CoderResult.java:142–158  ·  view source on GitHub ↗

Gets a CoderResult object indicating an unmappable character error. @param length the length of the input unit sequence denoting the unmappable character. @return a CoderResult object indicating an unmappable character error. @throws IllegalAr

(int length)

Source from the content-addressed store, hash-verified

140 * if <code>length</code> is non-positive.
141 */
142 public static synchronized CoderResult unmappableForLength(int length)
143 throws IllegalArgumentException {
144 if (length > 0) {
145 Integer key = Integer.valueOf(length);
146// synchronized (_unmappableErrors) {
147// CoderResult r = _unmappableErrors.get(key);
148// if (null == r) {
149 CoderResult r = new CoderResult(TYPE_UNMAPPABLE_CHAR, length);
150// _unmappableErrors.put(key, r);
151// }
152 return r;
153// }
154 }
155 // niochar.08=The length must be positive: {0}.
156 throw new IllegalArgumentException(Messages.getString(
157 "niochar.08", length)); //$NON-NLS-1$
158 }
159
160 /**
161 * Returns true if this result is an underflow condition.

Callers

nothing calls this directly

Calls 2

valueOfMethod · 0.95
getStringMethod · 0.95

Tested by

no test coverage detected