|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MQDataOutput
An MQDataOutput implementation allows read access to some underlying store of semi-structured binary data. It provides read methods for character data, integer data, floating-point data, packed decimal data and serialized Java objects. It converts between different representations of this data (e.g. EBCDIC/ASCII character data, big-endian and little-endian integer data) driven by the CCSID and encoding properties. It is intended for writing WebSphere MQ message data, and uses WMQ conventions.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
int |
getCCSID()
Returns the Coded Character Set Identifier currently used for character write operations |
int |
getDataOffset()
Returns the current offset of the cursor, relative to the position where this MQDataOutput object was originally created. |
DecimalEncoding |
getDecimalEncoding()
Returns the DecimalEncoding currently used for packed-decimal write operations. |
int |
getEncoding()
Return the WMQ encoding identifier representing the three encodings (integer, floating-point and packed-decimal) currently used for numeric write operations. |
FloatEncoding |
getFloatEncoding()
Returns the FloatEncoding currently used for floating-point write operations. |
IntegerEncoding |
getIntegerEncoding()
Returns the IntegerEncoding currently used for integer write operations. |
void |
setCCSID(int ccsid)
Sets the Coded Character Set Identifier to be used for subsequent character write operations. |
void |
setDecimalEncoding(DecimalEncoding de)
Sets the DecimalEncoding to be used for subsequent packed-decimal write operations. |
void |
setEncoding(int encoding)
Sets all three encoding values - integer, floating-point and packed-decimal, using the WMQ encoding identifier. |
void |
setFloatEncoding(FloatEncoding fe)
Sets the FloatEncoding to be used for subsequent floating-point write operations. |
void |
setIntegerEncoding(IntegerEncoding ie)
Sets the IntegerEncoding to be uesd for subsequence integer write operations. |
void |
writeByte(byte b)
Writes a single (signed) byte |
void |
writeBytes(byte[] b)
Writes an array of bytes |
void |
writeBytes(byte[] b,
int off,
int len,
byte pad)
Writes a portion of an array of bytes into a fixed-length field, truncating or padding as appropriate. |
void |
writeDecimal(int fieldLen,
java.math.BigInteger bi)
Writes a packed-decimal integer into a fixed-length field. |
void |
writeDecimal2(short s)
Writes a two-byte packed decimal integer. |
void |
writeDecimal4(int i)
Writes a four-byte packed decimal integer. |
void |
writeDecimal8(long l)
Writes an eight-byte packed decimal integer. |
void |
writeDouble(double d)
Writes a double as eight bytes, according to the current floating-point encoding. |
void |
writeFloat(float f)
Writes a float as four bytes, according to the current floating-point encoding. |
void |
writeInt(int i)
Writes an int as four bytes. |
void |
writeLong(long l)
Writes a long as eight bytes. |
void |
writeMQBYTE(byte b)
Writes a single (signed) byte |
void |
writeMQBYTE(byte[] b)
Writes an array of bytes |
void |
writeMQBYTE(int fieldLen,
byte[] b)
Writes an array of bytes, truncated or null-padded as necessary, into a fixed-length field. |
void |
writeMQBYTE(int fieldLen,
byte[] b,
byte pad)
Writes an array of bytes, truncated or padded as necessary, into a fixed-length field. |
void |
writeMQBYTE(int fieldLen,
byte[] b,
int off)
Writes an array of bytes, from an offset and truncated or null-padded as necessary, into a fixed-length field |
void |
writeMQBYTE(int fieldLen,
byte[] b,
int off,
byte pad)
Writes an array of bytes, from an offset and truncated or padded as necessary, into a fixed-length field |
void |
writeMQBYTE16(byte[] b)
Writes a 16-byte field from a byte array, truncated or null-padded as necessary. |
void |
writeMQBYTE16(byte[] b,
int off)
Writes a 16-byte field from a byte array, starting at a given offset, and truncating or null-padding as necessary. |
void |
writeMQBYTE24(byte[] b)
Writes a 24-byte field from a byte array, truncated or null-padded as necessary. |
void |
writeMQBYTE24(byte[] b,
int off)
Writes a 24-byte field from a byte array, starting at a given offset, and truncating or null-padding as necessary. |
void |
writeMQBYTE32(byte[] b)
Writes a 32-byte field from a byte array, truncated or null-padded as necessary. |
void |
writeMQBYTE32(byte[] b,
int off)
Writes a 32-byte field from a byte array, starting at a given offset, and truncating or null-padding as necessary. |
void |
writeMQBYTE8(byte[] b)
Writes an 8-byte field from a byte array, truncated or null-padded as necessary. |
void |
writeMQBYTE8(byte[] b,
int off)
Writes an 8-byte field from a byte array, starting at a given offset, and truncating or null-padding as necessary. |
void |
writeMQCHAR(char c)
Writes a character to the stream as a single byte, converted according to the current CCSID. |
void |
writeMQCHAR(char[] c)
Writes an array of characters to the stream, converted according to the current CCSID. |
void |
writeMQCHAR(int fieldLen,
char[] c)
Writes a fixed-length field from an array of characters, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR(int fieldLen,
char[] c,
char pad)
Writes a fixed-length field from an array of characters, converted according to the current CCSID, and truncated or padded as necessary. |
void |
writeMQCHAR(int fieldLen,
char[] c,
int off)
Writes a fixed-length field from an offset into an array of characters, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR(int fieldLen,
char[] c,
int off,
char pad)
Writes a fixed-length field from an offset into an array of characters, converted according to the current CCSID, and truncated or padded as necessary. |
void |
writeMQCHAR(int fieldLen,
java.lang.String s)
Writes a fixed-length field from a String, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR(int fieldLen,
java.lang.String s,
char pad)
Writes a fixed-length field from a String, converted according to the current CCSID, and truncated or padded as necessary. |
void |
writeMQCHAR(java.lang.String s)
Writes a String to the stream, converted according to the current CCSID. |
void |
writeMQCHAR12(char[] c)
Writes a 12-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR12(char[] c,
int off)
Writes a 12-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR12(java.lang.String s)
Writes a 12-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR128(char[] c)
Writes a 128-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR128(char[] c,
int off)
Writes a 128-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR128(java.lang.String s)
Writes a 128-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR16(char[] c)
Writes a 16-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR16(char[] c,
int off)
Writes a 16-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR16(java.lang.String s)
Writes a 16-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR20(char[] c)
Writes a 20-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR20(char[] c,
int off)
Writes a 20-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR20(java.lang.String s)
Writes a 20-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR24(char[] c)
Writes a 24-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR24(char[] c,
int off)
Writes a 24-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR24(java.lang.String s)
Writes a 24-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR256(char[] c)
Writes a 256-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR256(char[] c,
int off)
Writes a 256-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR256(java.lang.String s)
Writes a 256-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR28(char[] c)
Writes a 28-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR28(char[] c,
int off)
Writes a 28-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR28(java.lang.String s)
Writes a 28-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR32(char[] c)
Writes a 32-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR32(char[] c,
int off)
Writes a 32-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR32(java.lang.String s)
Writes a 32-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR4(char[] c)
Writes a 4-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR4(char[] c,
int off)
Writes a 4-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR4(java.lang.String s)
Writes a 4-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR48(char[] c)
Writes a 48-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR48(char[] c,
int off)
Writes a 48-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR48(java.lang.String s)
Writes a 48-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR64(char[] c)
Writes a 64-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR64(char[] c,
int off)
Writes a 64-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR64(java.lang.String s)
Writes a 64-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQCHAR8(char[] c)
Writes an 8-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary. |
void |
writeMQCHAR8(char[] c,
int off)
Writes an 8-byte field from an offset into a character array, converted according to the current CCSID, and truncated or space- padded as necessary |
void |
writeMQCHAR8(java.lang.String s)
Writes an 8-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary |
void |
writeMQINT32(int i)
Writes an int as four bytes. |
void |
writeMQINT64(long l)
Writes a long as eight bytes. |
void |
writeMQLONG(int i)
Writes an int as four bytes. |
void |
writeMQSHORT(short s)
Writes a short as two bytes. |
void |
writeMQUINT32(long l)
Writes four-byte unsigned integer. |
void |
writeMQUINT64(java.math.BigInteger i)
Writes an eight-byte unsigned integer. |
void |
writeMQULONG(long l)
Writes a four-byte unsigned integer. |
void |
writeMQUSHORT(int s)
Writes a two-byte unsigned short integer. |
void |
writeObject(java.lang.Object object)
Writes a Serializable java Object to the stream |
void |
writeShort(short s)
Writes a short as two bytes. |
void |
writeUCS2Char(char c)
Writes a single Unicode character as two-byte UCS-2. |
void |
writeUTF(java.lang.String s)
Writes a String using UTF-8. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
void setCCSID(int ccsid) throws java.io.IOException
ccsid
- new CCSID value
java.nio.charset.UnsupportedCharsetException
- if the JDK does not support
this character set
java.io.IOException
int getCCSID() throws java.io.IOException
java.io.IOException
void setIntegerEncoding(IntegerEncoding ie) throws java.io.IOException
ie
- new integer encoding value
java.io.IOException
IntegerEncoding
IntegerEncoding getIntegerEncoding() throws java.io.IOException
java.io.IOException
IntegerEncoding
void setFloatEncoding(FloatEncoding fe) throws java.io.IOException
fe
- new floating-point encoding value
java.io.IOException
FloatEncoding
FloatEncoding getFloatEncoding() throws java.io.IOException
java.io.IOException
FloatEncoding
void setDecimalEncoding(DecimalEncoding de) throws java.io.IOException
de
- new packed-decimal encoding value
java.io.IOException
DecimalEncoding
DecimalEncoding getDecimalEncoding() throws java.io.IOException
java.io.IOException
DecimalEncoding
void setEncoding(int encoding) throws java.io.IOException
encoding
- integer representation of the new encoding
java.lang.IllegalArgumentException
- if passed an unrecognised encoding identifier
java.io.IOException
int getEncoding() throws java.io.IOException
java.io.IOException
int getDataOffset() throws java.io.IOException
java.io.IOException
void writeByte(byte b) throws java.io.IOException
java.io.IOException
void writeBytes(byte[] b) throws java.io.IOException
b
- array to write
java.lang.NullPointerException
- if b is null
java.io.IOException
void writeBytes(byte[] b, int off, int len, byte pad) throws java.io.IOException
b
- source byte arrayoff
- Offset of the start of the portion of b to writelen
- Number of bytes to writepad
- Padding byte to use if b is not long enough to provide len bytes after off.
java.lang.NullPointerException
- if b is null
java.lang.IllegalArgumentException
- if len is negative
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of b
java.io.IOException
void writeMQBYTE(byte b) throws java.io.IOException
java.io.IOException
void writeMQBYTE(byte[] b) throws java.io.IOException
b
- array to write
java.lang.NullPointerException
- if b is null
java.io.IOException
void writeMQBYTE(int fieldLen, byte[] b) throws java.io.IOException
fieldLen
- Length of data to writeb
- source byte array
java.lang.NullPointerException
- if b is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.io.IOException
void writeMQBYTE(int fieldLen, byte[] b, byte pad) throws java.io.IOException
fieldLen
- Length of data to writeb
- source byte arraypad
- byte to pad with if necessary
java.lang.NullPointerException
- if b is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.io.IOException
void writeMQBYTE(int fieldLen, byte[] b, int off) throws java.io.IOException
fieldLen
- Length of data to writeb
- source byte arrayoff
- offset of the start of the portion of b to write
java.lang.NullPointerException
- if b is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of b
java.io.IOException
void writeMQBYTE(int fieldLen, byte[] b, int off, byte pad) throws java.io.IOException
fieldLen
- Length of data to writeb
- source byte arrayoff
- offset of the start of the portion of b to writepad
- value to use for padding
java.lang.NullPointerException
- if b is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of b
java.io.IOException
void writeMQBYTE8(byte[] b) throws java.io.IOException
b
- source byte array
java.lang.NullPointerException
- if b is null
java.io.IOException
void writeMQBYTE8(byte[] b, int off) throws java.io.IOException
b
- source byte arrayoff
- offset into b of start of data
java.lang.NullPointerException
- if b is null
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of b
java.io.IOException
void writeMQBYTE16(byte[] b) throws java.io.IOException
b
- source byte array
java.lang.NullPointerException
- if b is null
java.io.IOException
void writeMQBYTE16(byte[] b, int off) throws java.io.IOException
b
- source byte arrayoff
- offset into b of start of data
java.lang.NullPointerException
- if b is null
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of b
java.io.IOException
void writeMQBYTE24(byte[] b) throws java.io.IOException
b
- source byte array
java.lang.NullPointerException
- if b is null
java.io.IOException
void writeMQBYTE24(byte[] b, int off) throws java.io.IOException
b
- source byte arrayoff
- offset into b of start of data
java.lang.NullPointerException
- if b is null
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of b
java.io.IOException
void writeMQBYTE32(byte[] b) throws java.io.IOException
b
- source byte array
java.lang.NullPointerException
- if b is null
java.io.IOException
void writeMQBYTE32(byte[] b, int off) throws java.io.IOException
b
- source byte arrayoff
- offset into b of start of data
java.lang.NullPointerException
- if b is null
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of b
java.io.IOException
void writeMQCHAR(char c) throws java.io.IOException
java.io.IOException
- if the character is not represented by a single byte,
or for unexpected errorvoid writeMQCHAR(char[] c) throws java.io.IOException
c
- character array to write.
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR(int fieldLen, char[] c) throws java.io.IOException
fieldLen
- number of bytes to writec
- character array to write.
java.lang.NullPointerException
- if c is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.io.IOException
void writeMQCHAR(int fieldLen, char[] c, char pad) throws java.io.IOException
fieldLen
- number of bytes to writec
- character array to write.pad
- character to use for padding
java.lang.NullPointerException
- if c is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.io.IOException
void writeMQCHAR(int fieldLen, char[] c, int off) throws java.io.IOException
fieldLen
- number of bytes to writec
- character array to write.off
- offset of start of data in c
java.lang.NullPointerException
- if c is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of c
java.io.IOException
void writeMQCHAR(int fieldLen, char[] c, int off, char pad) throws java.io.IOException
fieldLen
- number of bytes to writec
- character array to write.off
- offset of start of data in cpad
- character to use for padding
java.lang.NullPointerException
- if c is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of c
java.io.IOException
void writeMQCHAR(java.lang.String s) throws java.io.IOException
s
- String to write.
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR(int fieldLen, java.lang.String s) throws java.io.IOException
fieldLen
- number of bytes to writes
- String to write.
java.lang.NullPointerException
- if s is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.io.IOException
void writeMQCHAR(int fieldLen, java.lang.String s, char pad) throws java.io.IOException
fieldLen
- number of bytes to writes
- String to write.pad
- character to use for padding
java.lang.NullPointerException
- if s is null
java.lang.IllegalArgumentException
- if fieldLen is negative
java.io.IOException
void writeMQCHAR4(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR4(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR4(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR8(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR8(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR8(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR12(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR12(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR12(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR16(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR16(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR16(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR20(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR20(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR20(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR24(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR24(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR24(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR28(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR28(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR28(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR32(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR32(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR32(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR48(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR48(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR48(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR64(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR64(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR64(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR128(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR128(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR128(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeMQCHAR256(char[] c) throws java.io.IOException
c
- source character array
java.lang.NullPointerException
- if c is null
java.io.IOException
void writeMQCHAR256(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into c
java.lang.NullPointerException
- if c is null
java.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of c
java.io.IOException
void writeMQCHAR256(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
void writeUCS2Char(char c) throws java.io.IOException
c
- character to write
java.io.IOException
void writeUTF(java.lang.String s) throws java.io.IOException
s
- String to write
java.lang.NullPointerException
- if s is null
java.io.IOException
DataOutput.writeUTF(String)
void writeShort(short s) throws java.io.IOException
s
- short to write
java.io.IOException
DataOutput.writeShort(int)
void writeMQSHORT(short s) throws java.io.IOException
s
- short to write
java.io.IOException
void writeMQUSHORT(int s) throws java.io.IOException
s
- integer to write
java.lang.IllegalArgumentException
- if s is out-of-range for a two-byte unsigned integer;
that is, less than 0 or greater than 65535.
java.io.IOException
void writeInt(int i) throws java.io.IOException
i
- int to write
java.io.IOException
DataOutput.writeInt(int)
void writeMQLONG(int i) throws java.io.IOException
i
- int to write
java.io.IOException
void writeMQULONG(long l) throws java.io.IOException
l
- integer to write
java.lang.IllegalArgumentException
- if l is out-of-range for a four-byte unsigned integer;
that is, less than 0 or greater than 4294967295.
java.io.IOException
void writeMQINT32(int i) throws java.io.IOException
i
- int to write
java.io.IOException
DataOutput.writeInt(int)
void writeMQUINT32(long l) throws java.io.IOException
l
- integer to write
java.lang.IllegalArgumentException
- if i is out-of-range for a four-byte unsigned integer;
that is, less than 0 or greater than 4294967295.
java.io.IOException
void writeLong(long l) throws java.io.IOException
l
- long to write
java.io.IOException
DataOutput.writeInt(int)
void writeMQINT64(long l) throws java.io.IOException
l
- long to write
java.io.IOException
void writeMQUINT64(java.math.BigInteger i) throws java.io.IOException
i
- integer to write
java.lang.NullPointerException
- if i is null
java.lang.IllegalArgumentException
- if i is out-of-range for an eight-byte unsigned integer;
that is, less than 0 or greater than 18446744073709551615.
java.io.IOException
void writeFloat(float f) throws java.io.IOException
f
- float to write
java.io.IOException
DataOutput.writeFloat(float)
void writeDouble(double d) throws java.io.IOException
d
- float to write
java.io.IOException
DataOutput.writeDouble(double)
void writeDecimal(int fieldLen, java.math.BigInteger bi) throws java.io.IOException
fieldLen
- number of bytes to writebi
- the BigInteger to write as packed-decimal.
java.lang.NullPointerException
- if bi is null
java.lang.IllegalArgumentException
- if fieldLen is less than 1, or if bi is out-of-range for
the given fieldLen; that is, if abs(fieldLen) >= 10(2*fieldLen-1)
java.io.IOException
- if a malformed packed-decimal is encountered, or for other error.void writeDecimal2(short s) throws java.io.IOException
s
- integer to write as packed-decimal
java.lang.IllegalArgumentException
- if s is not between -999 and 999 inclusive
java.io.IOException
void writeDecimal4(int i) throws java.io.IOException
i
- integer to write as packed-decimal
java.lang.IllegalArgumentException
- if s is not between -9999999 and 9999999 inclusive
java.io.IOException
void writeDecimal8(long l) throws java.io.IOException
l
- integer to write as packed-decimal
java.lang.IllegalArgumentException
- if s is not between -1015 and 1015 exclusive
java.io.IOException
void writeObject(java.lang.Object object) throws java.io.IOException
object
- object to serialize
java.io.NotSerializableException
- if object a non-Serializable object is encountered
java.io.IOException
ObjectOutput.writeObject(Object)
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |