if (messageReadWrite)
if (bodyWriteOnly)
   public char readChar() throws JMSException   {      if (messageReadWrite)         throw new MessageNotReadableException("The message body is writeonly");      try      {         Object value = content.get(position);         offset = 0;         if (value == null)            throw new NullPointerException("Value is null");         else if (value instanceof Character)         {            position++;            return ((Character) value).charValue();         }         else            throw new MessageFormatException("Invalid conversion");      }      catch (IndexOutOfBoundsException e)      {         throw new MessageEOFException("");      }   }