public interface MQDataOutput
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
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.
|
static final java.lang.String COPYRIGHT
void setCCSID(int ccsid) throws java.io.IOException
ccsid
- new CCSID valuejava.nio.charset.UnsupportedCharsetException
- if the JDK does not support
this character setjava.io.IOException
int getCCSID() throws java.io.IOException
java.io.IOException
void setIntegerEncoding(IntegerEncoding ie) throws java.io.IOException
ie
- new integer encoding valuejava.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 valuejava.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 valuejava.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 encodingjava.lang.IllegalArgumentException
- if passed an unrecognised encoding identifierjava.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 writejava.lang.NullPointerException
- if b is nulljava.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 nulljava.lang.IllegalArgumentException
- if len is negativejava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of bjava.io.IOException
void writeMQBYTE(byte b) throws java.io.IOException
java.io.IOException
void writeMQBYTE(byte[] b) throws java.io.IOException
b
- array to writejava.lang.NullPointerException
- if b is nulljava.io.IOException
void writeMQBYTE(int fieldLen, byte[] b) throws java.io.IOException
fieldLen
- Length of data to writeb
- source byte arrayjava.lang.NullPointerException
- if b is nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.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 necessaryjava.lang.NullPointerException
- if b is nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.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 writejava.lang.NullPointerException
- if b is nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of bjava.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 paddingjava.lang.NullPointerException
- if b is nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of bjava.io.IOException
void writeMQBYTE8(byte[] b) throws java.io.IOException
b
- source byte arrayjava.lang.NullPointerException
- if b is nulljava.io.IOException
void writeMQBYTE8(byte[] b, int off) throws java.io.IOException
b
- source byte arrayoff
- offset into b of start of datajava.lang.NullPointerException
- if b is nulljava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of bjava.io.IOException
void writeMQBYTE16(byte[] b) throws java.io.IOException
b
- source byte arrayjava.lang.NullPointerException
- if b is nulljava.io.IOException
void writeMQBYTE16(byte[] b, int off) throws java.io.IOException
b
- source byte arrayoff
- offset into b of start of datajava.lang.NullPointerException
- if b is nulljava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of bjava.io.IOException
void writeMQBYTE24(byte[] b) throws java.io.IOException
b
- source byte arrayjava.lang.NullPointerException
- if b is nulljava.io.IOException
void writeMQBYTE24(byte[] b, int off) throws java.io.IOException
b
- source byte arrayoff
- offset into b of start of datajava.lang.NullPointerException
- if b is nulljava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of bjava.io.IOException
void writeMQBYTE32(byte[] b) throws java.io.IOException
b
- source byte arrayjava.lang.NullPointerException
- if b is nulljava.io.IOException
void writeMQBYTE32(byte[] b, int off) throws java.io.IOException
b
- source byte arrayoff
- offset into b of start of datajava.lang.NullPointerException
- if b is nulljava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of bjava.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 nulljava.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 nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.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 paddingjava.lang.NullPointerException
- if c is nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.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 cjava.lang.NullPointerException
- if c is nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of cjava.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 paddingjava.lang.NullPointerException
- if c is nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.lang.IndexOutOfBoundsException
- if off is negative or greater than the length of cjava.io.IOException
void writeMQCHAR(java.lang.String s) throws java.io.IOException
s
- String to write.java.lang.NullPointerException
- if s is nulljava.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 nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.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 paddingjava.lang.NullPointerException
- if s is nulljava.lang.IllegalArgumentException
- if fieldLen is negativejava.io.IOException
void writeMQCHAR4(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR4(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR4(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR8(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR8(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR8(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR12(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR12(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR12(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR16(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR16(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR16(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR20(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR20(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR20(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR24(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR24(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR24(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR28(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR28(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR28(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR32(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR32(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR32(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR48(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR48(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR48(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR64(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR64(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR64(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR128(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR128(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR128(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeMQCHAR256(char[] c) throws java.io.IOException
c
- source character arrayjava.lang.NullPointerException
- if c is nulljava.io.IOException
void writeMQCHAR256(char[] c, int off) throws java.io.IOException
c
- source character arrayoff
- offset into cjava.lang.NullPointerException
- if c is nulljava.lang.IndexOutOfBoundsException
- if off is negative, or greater than the length of cjava.io.IOException
void writeMQCHAR256(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
void writeUCS2Char(char c) throws java.io.IOException
c
- character to writejava.io.IOException
void writeUTF(java.lang.String s) throws java.io.IOException
s
- String to writejava.lang.NullPointerException
- if s is nulljava.io.IOException
DataOutput.writeUTF(String)
void writeShort(short s) throws java.io.IOException
s
- short to writejava.io.IOException
DataOutput.writeShort(int)
void writeMQSHORT(short s) throws java.io.IOException
s
- short to writejava.io.IOException
void writeMQUSHORT(int s) throws java.io.IOException
s
- integer to writejava.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 writejava.io.IOException
DataOutput.writeInt(int)
void writeMQLONG(int i) throws java.io.IOException
i
- int to writejava.io.IOException
void writeMQULONG(long l) throws java.io.IOException
l
- integer to writejava.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 writejava.io.IOException
DataOutput.writeInt(int)
void writeMQUINT32(long l) throws java.io.IOException
l
- integer to writejava.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 writejava.io.IOException
DataOutput.writeInt(int)
void writeMQINT64(long l) throws java.io.IOException
l
- long to writejava.io.IOException
void writeMQUINT64(java.math.BigInteger i) throws java.io.IOException
i
- integer to writejava.lang.NullPointerException
- if i is nulljava.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 writejava.io.IOException
DataOutput.writeFloat(float)
void writeDouble(double d) throws java.io.IOException
d
- float to writejava.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 nulljava.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-decimaljava.lang.IllegalArgumentException
- if s is not between -999 and 999 inclusivejava.io.IOException
void writeDecimal4(int i) throws java.io.IOException
i
- integer to write as packed-decimaljava.lang.IllegalArgumentException
- if s is not between -9999999 and 9999999 inclusivejava.io.IOException
void writeDecimal8(long l) throws java.io.IOException
l
- integer to write as packed-decimaljava.lang.IllegalArgumentException
- if s is not between -1015 and 1015 exclusivejava.io.IOException
void writeObject(java.lang.Object object) throws java.io.IOException
object
- object to serializejava.io.NotSerializableException
- if object a non-Serializable object is encounteredjava.io.IOException
ObjectOutput.writeObject(Object)