if (messageReadWrite)
if (bodyWriteOnly)
   public String readString() throws JMSException   {      if (messageReadWrite)         throw new MessageNotReadableException("The message body is writeonly");      try      {         Object value = content.get(position);         offset = 0;         if (value == null)         {            position++;            return null;         }         else if (value instanceof Boolean)         {            position++;            return ((Boolean) value).toString();         }         else if (value instanceof Byte)         {            position++;            return ((Byte) value).toString();         }         else if (value instanceof Short)         {            position++;            return ((Short) value).toString();         }         else if (value instanceof Character)         {            position++;            return ((Character) value).toString();         }         else if (value instanceof Integer)         {            position++;            return ((Integer) value).toString();         }         else if (value instanceof Long)         {            position++;            return ((Long) value).toString();         }         else if (value instanceof Float)         {            position++;            return ((Float) value).toString();         }         else if (value instanceof Double)         {            position++;            return ((Double) value).toString();         }         else if (value instanceof String)         {            position++;            return (String) value;         }         else            throw new MessageFormatException("Invalid conversion");      }      catch (IndexOutOfBoundsException e)      {         throw new MessageEOFException("");      }   }