public class MQDataOutputStream extends java.io.FilterOutputStream implements MQDataOutput
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Constructor and Description |
---|
MQDataOutputStream(java.io.OutputStream out) |
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 |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
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 i)
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.
|
public static final java.lang.String COPYRIGHT
public void setCCSID(int ccsid) throws java.io.IOException
MQDataOutput
setCCSID
in interface MQDataOutput
ccsid
- new CCSID valuejava.io.IOException
public int getCCSID() throws java.io.IOException
MQDataOutput
getCCSID
in interface MQDataOutput
java.io.IOException
public void setIntegerEncoding(IntegerEncoding ie) throws java.io.IOException
MQDataOutput
setIntegerEncoding
in interface MQDataOutput
ie
- new integer encoding valuejava.io.IOException
IntegerEncoding
public IntegerEncoding getIntegerEncoding() throws java.io.IOException
MQDataOutput
getIntegerEncoding
in interface MQDataOutput
java.io.IOException
IntegerEncoding
public void setFloatEncoding(FloatEncoding fe) throws java.io.IOException
MQDataOutput
setFloatEncoding
in interface MQDataOutput
fe
- new floating-point encoding valuejava.io.IOException
FloatEncoding
public FloatEncoding getFloatEncoding() throws java.io.IOException
MQDataOutput
getFloatEncoding
in interface MQDataOutput
java.io.IOException
FloatEncoding
public void setDecimalEncoding(DecimalEncoding de) throws java.io.IOException
MQDataOutput
setDecimalEncoding
in interface MQDataOutput
de
- new packed-decimal encoding valuejava.io.IOException
DecimalEncoding
public DecimalEncoding getDecimalEncoding() throws java.io.IOException
MQDataOutput
getDecimalEncoding
in interface MQDataOutput
java.io.IOException
DecimalEncoding
public void setEncoding(int encoding) throws java.io.IOException
MQDataOutput
setEncoding
in interface MQDataOutput
encoding
- integer representation of the new encodingjava.io.IOException
public int getEncoding() throws java.io.IOException
MQDataOutput
getEncoding
in interface MQDataOutput
java.io.IOException
public int getDataOffset() throws java.io.IOException
MQDataOutput
getDataOffset
in interface MQDataOutput
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void writeByte(byte b) throws java.io.IOException
MQDataOutput
writeByte
in interface MQDataOutput
java.io.IOException
public void writeBytes(byte[] b) throws java.io.IOException
MQDataOutput
writeBytes
in interface MQDataOutput
b
- array to writejava.io.IOException
public void writeBytes(byte[] b, int off, int len, byte pad) throws java.io.IOException
MQDataOutput
writeBytes
in interface MQDataOutput
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.io.IOException
public void writeMQBYTE(byte b) throws java.io.IOException
MQDataOutput
writeMQBYTE
in interface MQDataOutput
java.io.IOException
public void writeMQBYTE(byte[] b) throws java.io.IOException
MQDataOutput
writeMQBYTE
in interface MQDataOutput
b
- array to writejava.io.IOException
public void writeMQBYTE(int fieldLen, byte[] b) throws java.io.IOException
MQDataOutput
writeMQBYTE
in interface MQDataOutput
fieldLen
- Length of data to writeb
- source byte arrayjava.io.IOException
public void writeMQBYTE(int fieldLen, byte[] b, byte pad) throws java.io.IOException
MQDataOutput
writeMQBYTE
in interface MQDataOutput
fieldLen
- Length of data to writeb
- source byte arraypad
- byte to pad with if necessaryjava.io.IOException
public void writeMQBYTE(int fieldLen, byte[] b, int off) throws java.io.IOException
MQDataOutput
writeMQBYTE
in interface MQDataOutput
fieldLen
- Length of data to writeb
- source byte arrayoff
- offset of the start of the portion of b to writejava.io.IOException
public void writeMQBYTE(int fieldLen, byte[] b, int off, byte pad) throws java.io.IOException
MQDataOutput
writeMQBYTE
in interface MQDataOutput
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.io.IOException
public void writeMQBYTE8(byte[] b) throws java.io.IOException
MQDataOutput
writeMQBYTE8
in interface MQDataOutput
b
- source byte arrayjava.io.IOException
public void writeMQBYTE8(byte[] b, int off) throws java.io.IOException
MQDataOutput
writeMQBYTE8
in interface MQDataOutput
b
- source byte arrayoff
- offset into b of start of datajava.io.IOException
public void writeMQBYTE16(byte[] b) throws java.io.IOException
MQDataOutput
writeMQBYTE16
in interface MQDataOutput
b
- source byte arrayjava.io.IOException
public void writeMQBYTE16(byte[] b, int off) throws java.io.IOException
MQDataOutput
writeMQBYTE16
in interface MQDataOutput
b
- source byte arrayoff
- offset into b of start of datajava.io.IOException
public void writeMQBYTE24(byte[] b) throws java.io.IOException
MQDataOutput
writeMQBYTE24
in interface MQDataOutput
b
- source byte arrayjava.io.IOException
public void writeMQBYTE24(byte[] b, int off) throws java.io.IOException
MQDataOutput
writeMQBYTE24
in interface MQDataOutput
b
- source byte arrayoff
- offset into b of start of datajava.io.IOException
public void writeMQBYTE32(byte[] b) throws java.io.IOException
MQDataOutput
writeMQBYTE32
in interface MQDataOutput
b
- source byte arrayjava.io.IOException
public void writeMQBYTE32(byte[] b, int off) throws java.io.IOException
MQDataOutput
writeMQBYTE32
in interface MQDataOutput
b
- source byte arrayoff
- offset into b of start of datajava.io.IOException
public void writeMQCHAR(char c) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
java.io.IOException
- if the character is not represented by a single byte,
or for unexpected errorpublic void writeMQCHAR(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
c
- character array to write.java.io.IOException
public void writeMQCHAR(int fieldLen, char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
fieldLen
- number of bytes to writec
- character array to write.java.io.IOException
public void writeMQCHAR(int fieldLen, char[] c, char pad) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
fieldLen
- number of bytes to writec
- character array to write.pad
- character to use for paddingjava.io.IOException
public void writeMQCHAR(int fieldLen, char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
fieldLen
- number of bytes to writec
- character array to write.off
- offset of start of data in cjava.io.IOException
public void writeMQCHAR(int fieldLen, char[] c, int off, char pad) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
fieldLen
- number of bytes to writec
- character array to write.off
- offset of start of data in cpad
- character to use for paddingjava.io.IOException
public void writeMQCHAR(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
s
- String to write.java.io.IOException
public void writeMQCHAR(int fieldLen, java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
fieldLen
- number of bytes to writes
- String to write.java.io.IOException
public void writeMQCHAR(int fieldLen, java.lang.String s, char pad) throws java.io.IOException
MQDataOutput
writeMQCHAR
in interface MQDataOutput
fieldLen
- number of bytes to writes
- String to write.pad
- character to use for paddingjava.io.IOException
public void writeMQCHAR4(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR4
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR4(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR4
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR4(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR4
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR8(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR8
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR8(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR8
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR8(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR8
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR12(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR12
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR12(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR12
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR12(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR12
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR16(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR16
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR16(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR16
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR16(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR16
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR20(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR20
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR20(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR20
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR20(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR20
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR24(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR24
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR24(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR24
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR24(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR24
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR28(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR28
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR28(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR28
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR28(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR28
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR32(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR32
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR32(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR32
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR32(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR32
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR48(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR48
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR48(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR48
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR48(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR48
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR64(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR64
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR64(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR64
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR64(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR64
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR128(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR128
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR128(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR128
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR128(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR128
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeMQCHAR256(char[] c) throws java.io.IOException
MQDataOutput
writeMQCHAR256
in interface MQDataOutput
c
- source character arrayjava.io.IOException
public void writeMQCHAR256(char[] c, int off) throws java.io.IOException
MQDataOutput
writeMQCHAR256
in interface MQDataOutput
c
- source character arrayoff
- offset into cjava.io.IOException
public void writeMQCHAR256(java.lang.String s) throws java.io.IOException
MQDataOutput
writeMQCHAR256
in interface MQDataOutput
s
- String to writejava.io.IOException
public void writeUCS2Char(char c) throws java.io.IOException
MQDataOutput
writeUCS2Char
in interface MQDataOutput
c
- character to writejava.io.IOException
public void writeUTF(java.lang.String s) throws java.io.IOException
MQDataOutput
writeUTF
in interface MQDataOutput
s
- String to writejava.io.IOException
DataOutput.writeUTF(String)
public void writeShort(short s) throws java.io.IOException
MQDataOutput
writeShort
in interface MQDataOutput
s
- short to writejava.io.IOException
DataOutput.writeShort(int)
public void writeMQSHORT(short s) throws java.io.IOException
MQDataOutput
writeMQSHORT
in interface MQDataOutput
s
- short to writejava.io.IOException
public void writeMQUSHORT(int i) throws java.io.IOException
MQDataOutput
writeMQUSHORT
in interface MQDataOutput
i
- integer to writejava.io.IOException
public void writeInt(int i) throws java.io.IOException
MQDataOutput
writeInt
in interface MQDataOutput
i
- int to writejava.io.IOException
DataOutput.writeInt(int)
public void writeMQLONG(int i) throws java.io.IOException
MQDataOutput
writeMQLONG
in interface MQDataOutput
i
- int to writejava.io.IOException
public void writeMQULONG(long l) throws java.io.IOException
MQDataOutput
writeMQULONG
in interface MQDataOutput
l
- integer to writejava.io.IOException
public void writeMQINT32(int i) throws java.io.IOException
MQDataOutput
writeMQINT32
in interface MQDataOutput
i
- int to writejava.io.IOException
DataOutput.writeInt(int)
public void writeMQUINT32(long l) throws java.io.IOException
MQDataOutput
writeMQUINT32
in interface MQDataOutput
l
- integer to writejava.io.IOException
public void writeLong(long l) throws java.io.IOException
MQDataOutput
writeLong
in interface MQDataOutput
l
- long to writejava.io.IOException
DataOutput.writeInt(int)
public void writeMQINT64(long l) throws java.io.IOException
MQDataOutput
writeMQINT64
in interface MQDataOutput
l
- long to writejava.io.IOException
public void writeMQUINT64(java.math.BigInteger i) throws java.io.IOException
MQDataOutput
writeMQUINT64
in interface MQDataOutput
i
- integer to writejava.io.IOException
public void writeFloat(float f) throws java.io.IOException
MQDataOutput
writeFloat
in interface MQDataOutput
f
- float to writejava.io.IOException
DataOutput.writeFloat(float)
public void writeDouble(double d) throws java.io.IOException
MQDataOutput
writeDouble
in interface MQDataOutput
d
- float to writejava.io.IOException
DataOutput.writeDouble(double)
public void writeDecimal(int fieldLen, java.math.BigInteger bi) throws java.io.IOException
MQDataOutput
writeDecimal
in interface MQDataOutput
fieldLen
- number of bytes to writebi
- the BigInteger to write as packed-decimal.java.io.IOException
- if a malformed packed-decimal is encountered, or for other error.public void writeDecimal2(short s) throws java.io.IOException
MQDataOutput
writeDecimal2
in interface MQDataOutput
s
- integer to write as packed-decimaljava.io.IOException
public void writeDecimal4(int i) throws java.io.IOException
MQDataOutput
writeDecimal4
in interface MQDataOutput
i
- integer to write as packed-decimaljava.io.IOException
public void writeDecimal8(long l) throws java.io.IOException
MQDataOutput
writeDecimal8
in interface MQDataOutput
l
- integer to write as packed-decimaljava.io.IOException
public void writeObject(java.lang.Object object) throws java.io.IOException
MQDataOutput
writeObject
in interface MQDataOutput
object
- object to serializejava.io.NotSerializableException
- if object a non-Serializable object is encounteredjava.io.IOException
ObjectOutput.writeObject(Object)