Package javax.jms

Examples of javax.jms.MessageNotReadableException


   public short readShort() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readShort();
   }
View Full Code Here


   public int readUnsignedShort() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readUnsignedShort();
   }
View Full Code Here

   public char readChar() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readChar();
   }
View Full Code Here

   public int readInt() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readInt();
   }
View Full Code Here

   public long readLong() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readLong();
   }
View Full Code Here

   public float readFloat() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readFloat();
   }
View Full Code Here

   public double readDouble() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readDouble();
   }
View Full Code Here

   public String readUTF() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readUTF();
   }
View Full Code Here

   public int readBytes(byte[] value) throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readBytes(value);
   }
View Full Code Here

   public int readBytes(byte[] value, int length) throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readBytes(value, length);
   }
View Full Code Here

TOP

Related Classes of javax.jms.MessageNotReadableException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.