1 22 package org.jboss.resource.adapter.jms; 23 24 import javax.jms.BytesMessage ; 25 import javax.jms.JMSException ; 26 27 33 public class JmsBytesMessage extends JmsMessage implements BytesMessage 34 { 35 41 public JmsBytesMessage(BytesMessage message, JmsSession session) 42 { 43 super(message, session); 44 } 45 46 public long getBodyLength() throws JMSException 47 { 48 return ((BytesMessage ) message).getBodyLength(); 49 } 50 51 public boolean readBoolean() throws JMSException 52 { 53 return ((BytesMessage ) message).readBoolean(); 54 } 55 56 public byte readByte() throws JMSException 57 { 58 return ((BytesMessage ) message).readByte(); 59 } 60 61 public int readBytes(byte[] value, int length) throws JMSException 62 { 63 return ((BytesMessage ) message).readBytes(value, length); 64 } 65 66 public int readBytes(byte[] value) throws JMSException 67 { 68 return ((BytesMessage ) message).readBytes(value); 69 } 70 71 public char readChar() throws JMSException 72 { 73 return ((BytesMessage ) message).readChar(); 74 } 75 76 public double readDouble() throws JMSException 77 { 78 return ((BytesMessage ) message).readDouble(); 79 } 80 81 public float readFloat() throws JMSException 82 { 83 return ((BytesMessage ) message).readFloat(); 84 } 85 86 public int readInt() throws JMSException 87 { 88 return ((BytesMessage ) message).readInt(); 89 } 90 91 public long readLong() throws JMSException 92 { 93 return ((BytesMessage ) message).readLong(); 94 } 95 96 public short readShort() throws JMSException 97 { 98 return ((BytesMessage ) message).readShort(); 99 } 100 101 public int readUnsignedByte() throws JMSException 102 { 103 return ((BytesMessage ) message).readUnsignedByte(); 104 } 105 106 public int readUnsignedShort() throws JMSException 107 { 108 return ((BytesMessage ) message).readUnsignedShort(); 109 } 110 111 public String readUTF() throws JMSException 112 { 113 return ((BytesMessage ) message).readUTF(); 114 } 115 116 public void reset() throws JMSException 117 { 118 ((BytesMessage ) message).reset(); 119 } 120 121 public void writeBoolean(boolean value) throws JMSException 122 { 123 ((BytesMessage ) message).writeBoolean(value); 124 } 125 126 public void writeByte(byte value) throws JMSException 127 { 128 ((BytesMessage ) message).writeByte(value); 129 } 130 131 public void writeBytes(byte[] value, int offset, int length) throws JMSException 132 { 133 ((BytesMessage ) message).writeBytes(value, offset, length); 134 } 135 136 public void writeBytes(byte[] value) throws JMSException 137 { 138 ((BytesMessage ) message).writeBytes(value); 139 } 140 141 public void writeChar(char value) throws JMSException 142 { 143 ((BytesMessage ) message).writeChar(value); 144 } 145 146 public void writeDouble(double value) throws JMSException 147 { 148 ((BytesMessage ) message).writeDouble(value); 149 } 150 151 public void writeFloat(float value) throws JMSException 152 { 153 ((BytesMessage ) message).writeFloat(value); 154 } 155 156 public void writeInt(int value) throws JMSException 157 { 158 ((BytesMessage ) message).writeInt(value); 159 } 160 161 public void writeLong(long value) throws JMSException 162 { 163 ((BytesMessage ) message).writeLong(value); 164 } 165 166 public void writeObject(Object value) throws JMSException 167 { 168 ((BytesMessage ) message).writeObject(value); 169 } 170 171 public void writeShort(short value) throws JMSException 172 { 173 ((BytesMessage ) message).writeShort(value); 174 } 175 176 public void writeUTF(String value) throws JMSException 177 { 178 ((BytesMessage ) message).writeUTF(value); 179 } 180 } 181 | Popular Tags |