Example #1
0
 /**
  * Static factory method that returns the unique result object describing an unmappable-character
  * error of the given length.
  *
  * @return The requested coder-result object
  */
 public static CoderResult unmappableForLength(int length) {
   return unmappableCache.get(length);
 }
Example #2
0
 /**
  * Static factory method that returns the unique object describing a malformed-input error of the
  * given length.
  *
  * @return The requested coder-result object
  */
 public static CoderResult malformedForLength(int length) {
   return malformedCache.get(length);
 }