|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BytesBody
The Message payload contains an arbitrary byte array that can be interpreted by the application as basic Java types. The instance must be placed into either a read mode or write mode. You can switch between the two modes per instance, but each time you do it will reset the buffer. When finished, you must flush the instance to the underlying payload implementation.
Field Summary | |
---|---|
static java.lang.String |
BYTES_LOCATION
|
Fields inherited from interface org.jboss.soa.esb.message.Body |
---|
DEFAULT_LOCATION |
Method Summary | |
---|---|
void |
flush()
Flush the internal byte array through to the payload. |
boolean |
readBoolean()
|
char |
readChar()
|
double |
readDouble()
|
float |
readFloat()
|
int |
readInt()
|
long |
readLong()
|
void |
readMode()
Place the instance into read mode, so that the information within the byte stream can be retrieved. |
short |
readShort()
|
java.lang.String |
readUTFString()
|
void |
reset()
Reset the internal buffer. |
void |
writeBoolean(boolean b)
|
void |
writeChar(char c)
|
void |
writeDouble(double d)
|
void |
writeFloat(float f)
|
void |
writeInt(int i)
|
void |
writeLong(long l)
|
void |
writeMode()
Plce the instance into write mode, so that information may be placed within the byte stream. |
void |
writeShort(short s)
|
void |
writeUTFString(java.lang.String s)
|
Methods inherited from interface org.jboss.soa.esb.message.Body |
---|
add, add, get, get, getByteArray, getContents, getNames, merge, remove, replace, setByteArray, setContents |
Field Detail |
---|
static final java.lang.String BYTES_LOCATION
Method Detail |
---|
boolean readBoolean() throws IncompatibleModeException, java.io.IOException, InvalidPayloadException
IncompatibleModeException
java.io.IOException
InvalidPayloadException
int readInt() throws IncompatibleModeException, java.io.IOException, InvalidPayloadException
IncompatibleModeException
java.io.IOException
InvalidPayloadException
long readLong() throws IncompatibleModeException, java.io.IOException, InvalidPayloadException
IncompatibleModeException
java.io.IOException
InvalidPayloadException
char readChar() throws IncompatibleModeException, java.io.IOException, InvalidPayloadException
IncompatibleModeException
java.io.IOException
InvalidPayloadException
double readDouble() throws IncompatibleModeException, java.io.IOException, InvalidPayloadException
IncompatibleModeException
java.io.IOException
InvalidPayloadException
float readFloat() throws IncompatibleModeException, java.io.IOException, InvalidPayloadException
IncompatibleModeException
java.io.IOException
InvalidPayloadException
short readShort() throws IncompatibleModeException, java.io.IOException, InvalidPayloadException
IncompatibleModeException
java.io.IOException
InvalidPayloadException
java.lang.String readUTFString() throws IncompatibleModeException, java.io.IOException, InvalidPayloadException
IncompatibleModeException
java.io.IOException
InvalidPayloadException
void writeBoolean(boolean b) throws IncompatibleModeException, java.io.IOException
IncompatibleModeException
java.io.IOException
void writeInt(int i) throws IncompatibleModeException, java.io.IOException
IncompatibleModeException
java.io.IOException
void writeLong(long l) throws IncompatibleModeException, java.io.IOException
IncompatibleModeException
java.io.IOException
void writeChar(char c) throws IncompatibleModeException, java.io.IOException
IncompatibleModeException
java.io.IOException
void writeDouble(double d) throws IncompatibleModeException, java.io.IOException
IncompatibleModeException
java.io.IOException
void writeFloat(float f) throws IncompatibleModeException, java.io.IOException
IncompatibleModeException
java.io.IOException
void writeShort(short s) throws IncompatibleModeException, java.io.IOException
IncompatibleModeException
java.io.IOException
void writeUTFString(java.lang.String s) throws IncompatibleModeException, java.io.IOException
IncompatibleModeException
java.io.IOException
void readMode() throws java.io.IOException
java.io.IOException
void writeMode() throws java.io.IOException
java.io.IOException
void reset() throws java.io.IOException
java.io.IOException
void flush() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |