Home | History | Annotate | Download | only in charset

Lines Matching refs:length

59  *   <tt>true</tt> and whose {@link #length() length} method returns the length
61 * all malformed-input errors of a given length. </p></li>
67 * whose {@link #length() length} method returns the length of the input
69 * of this class for all unmappable-character errors of a given length.
97 private final int length;
99 private CoderResult(int type, int length) {
101 this.length = length;
111 return isError() ? nm + "[" + length + "]" : nm;
164 * Returns the length of the erroneous input described by this
167 * @return The length of the erroneous input, a positive integer
173 public int length() {
176 return length;
202 throw new IllegalArgumentException("Non-positive length");
228 * malformed-input error of the given length.
230 * @param length
231 * The given length
235 public static CoderResult malformedForLength(int length) {
236 return malformedCache.get(length);
247 * an unmappable-character error of the given length.
249 * @param length
250 * The given length
254 public static CoderResult unmappableForLength(int length) {
255 return unmappableCache.get(length);
269 * exception's length value will be that of this object
273 * exceptions length value will be that of this object
281 case CR_MALFORMED: throw new MalformedInputException(length);
282 case CR_UNMAPPABLE: throw new UnmappableCharacterException(length);