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