code: public void throwException() throws BufferUnderflowException,
              BufferOverflowException, UnmappableCharacterException,
              MalformedInputException, CharacterCodingException {
          switch (this.type) {
              case TYPE_UNDERFLOW:
                  throw new BufferUnderflowException();
              case TYPE_OVERFLOW:
                  throw new BufferOverflowException();
              case TYPE_UNMAPPABLE_CHAR:
                  throw new UnmappableCharacterException(this.length);
              case TYPE_MALFORMED_INPUT:
                  throw new MalformedInputException(this.length);
              default:
                  throw new CharacterCodingException();
          }
      }
docs: Throws an exception corresponding to this coder result.
  
  @throws BufferUnderflowException
  in case this is an underflow.
  @throws BufferOverflowException
  in case this is an overflow.
  @throws UnmappableCharacterException
  in case this is an unmappable-character error.
  @throws MalformedInputException
  in case this is a malformed-input error.
  @throws CharacterCodingException
  the default exception.