API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.nio.charset. CoderResult View Source
Author(s)
Mark Reinhold
JSR-51 Expert Group
Since
1.4
Version
1.9, 05/11/17
Serial
Hierarchy
 Object
      CoderResult
Implements
Subclasses
Description
public class CoderResult
  A description of the result state of a coder.
See also:   
Constructors
private CoderResult (int type, int length)
Methods
Hide/Show inherited methods
public boolean isError ()
  Tells whether or not this object describes an error condition.
public boolean isMalformed ()
  Tells whether or not this object describes a malformed-input error.
public boolean isOverflow ()
  Tells whether or not this object describes an overflow condition.
public boolean isUnderflow ()
  Tells whether or not this object describes an underflow condition.
public boolean isUnmappable ()
  Tells whether or not this object describes an unmappable-character error.
public int length ()
  Returns the length of the erroneous input described by this object  (optional operation).
publicstatic CoderResult malformedForLength (int length)
  Static factory method that returns the unique object describing a malformed-input error of the given length.
public void throwException () throws CharacterCodingException
  Throws an exception appropriate to the result described by this object.
public String toString ()
  Returns a string describing this coder result.
publicstatic CoderResult unmappableForLength (int length)
  Static factory method that returns the unique result object describing an unmappable-character error of the given length.
Fields
Hide/Show inherited fields
publicfinalstatic CoderResult OVERFLOW
  Result object indicating overflow, meaning that there is insufficient room in the output buffer.
publicfinalstatic CoderResult UNDERFLOW
  Result object indicating underflow, meaning that either the input buffer has been completely consumed or, if the input buffer is not yet empty, that additional input is required.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar