com.ibm.mq.data

Class MQDataOutputStream

  1. java.lang.Object
  2. extended byjava.io.OutputStream
  3. extended byjava.io.FilterOutputStream
  4. extended bycom.ibm.mq.data.MQDataOutputStream
All implemented interfaces:
MQDataOutput, java.io.Closeable, java.io.Flushable

  1. public class MQDataOutputStream
  2. extends java.io.FilterOutputStream
  3. implements MQDataOutput
Provides an OutputStream implementation of MQDataOutput. To use, wrap a target OutputStream in the MQDataOutputStream. Subsequent direct access to the target OutputStream should be discouraged, as it will result in undefined behaviour from the MQDataOutputStream.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT
Fields inherited from class java.io.FilterOutputStream
out

Constructor Summary

Constructor and Description
MQDataOutputStream(java.io.OutputStream out)

Method Summary

Modifier and Type Method and Description
  1. int
getCCSID()
  1. int
getDataOffset()
  1. DecimalEncoding
getDecimalEncoding()
  1. int
getEncoding()
  1. FloatEncoding
getFloatEncoding()
  1. IntegerEncoding
getIntegerEncoding()
  1. void
setCCSID(int ccsid)
  1. void
setDecimalEncoding(DecimalEncoding de)
  1. void
setEncoding(int encoding)
  1. void
setFloatEncoding(FloatEncoding fe)
  1. void
setIntegerEncoding(IntegerEncoding ie)
  1. void
write(byte[] b)
  1. void
write(byte[] b,int off,int len)
  1. void
write(int b)
  1. void
writeByte(byte b)
  1. void
writeBytes(byte[] b)
  1. void
writeBytes(byte[] b,int off,int len,byte pad)
  1. void
writeDecimal(int fieldLen,java.math.BigInteger bi)
  1. void
writeDecimal2(short s)
  1. void
writeDecimal4(int i)
  1. void
writeDecimal8(long l)
  1. void
writeDouble(double d)
  1. void
writeFloat(float f)
  1. void
writeInt(int i)
  1. void
writeLong(long l)
  1. void
writeMQBYTE(byte b)
  1. void
writeMQBYTE(byte[] b)
  1. void
writeMQBYTE(int fieldLen,byte[] b)
  1. void
writeMQBYTE(int fieldLen,byte[] b,byte pad)
  1. void
writeMQBYTE(int fieldLen,byte[] b,int off)
  1. void
writeMQBYTE(int fieldLen,byte[] b,int off,byte pad)
  1. void
writeMQBYTE16(byte[] b)
  1. void
writeMQBYTE16(byte[] b,int off)
  1. void
writeMQBYTE24(byte[] b)
  1. void
writeMQBYTE24(byte[] b,int off)
  1. void
writeMQBYTE32(byte[] b)
  1. void
writeMQBYTE32(byte[] b,int off)
  1. void
writeMQBYTE8(byte[] b)
  1. void
writeMQBYTE8(byte[] b,int off)
  1. void
writeMQCHAR(char c)
  1. void
writeMQCHAR(char[] c)
  1. void
writeMQCHAR(int fieldLen,char[] c)
  1. void
writeMQCHAR(int fieldLen,char[] c,char pad)
  1. void
writeMQCHAR(int fieldLen,char[] c,int off)
  1. void
writeMQCHAR(int fieldLen,char[] c,int off,char pad)
  1. void
writeMQCHAR(int fieldLen,java.lang.String s)
  1. void
writeMQCHAR(int fieldLen,java.lang.String s,char pad)
  1. void
writeMQCHAR(java.lang.String s)
  1. void
writeMQCHAR12(char[] c)
  1. void
writeMQCHAR12(char[] c,int off)
  1. void
writeMQCHAR12(java.lang.String s)
  1. void
writeMQCHAR128(char[] c)
  1. void
writeMQCHAR128(char[] c,int off)
  1. void
writeMQCHAR128(java.lang.String s)
  1. void
writeMQCHAR16(char[] c)
  1. void
writeMQCHAR16(char[] c,int off)
  1. void
writeMQCHAR16(java.lang.String s)
  1. void
writeMQCHAR20(char[] c)
  1. void
writeMQCHAR20(char[] c,int off)
  1. void
writeMQCHAR20(java.lang.String s)
  1. void
writeMQCHAR24(char[] c)
  1. void
writeMQCHAR24(char[] c,int off)
  1. void
writeMQCHAR24(java.lang.String s)
  1. void
writeMQCHAR256(char[] c)
  1. void
writeMQCHAR256(char[] c,int off)
  1. void
writeMQCHAR256(java.lang.String s)
  1. void
writeMQCHAR28(char[] c)
  1. void
writeMQCHAR28(char[] c,int off)
  1. void
writeMQCHAR28(java.lang.String s)
  1. void
writeMQCHAR32(char[] c)
  1. void
writeMQCHAR32(char[] c,int off)
  1. void
writeMQCHAR32(java.lang.String s)
  1. void
writeMQCHAR4(char[] c)
  1. void
writeMQCHAR4(char[] c,int off)
  1. void
writeMQCHAR4(java.lang.String s)
  1. void
writeMQCHAR48(char[] c)
  1. void
writeMQCHAR48(char[] c,int off)
  1. void
writeMQCHAR48(java.lang.String s)
  1. void
writeMQCHAR64(char[] c)
  1. void
writeMQCHAR64(char[] c,int off)
  1. void
writeMQCHAR64(java.lang.String s)
  1. void
writeMQCHAR8(char[] c)
  1. void
writeMQCHAR8(char[] c,int off)
  1. void
writeMQCHAR8(java.lang.String s)
  1. void
writeMQINT32(int i)
  1. void
writeMQINT64(long l)
  1. void
writeMQLONG(int i)
  1. void
writeMQSHORT(short s)
  1. void
writeMQUINT32(long l)
  1. void
writeMQUINT64(java.math.BigInteger i)
  1. void
writeMQULONG(long l)
  1. void
writeMQUSHORT(int i)
  1. void
writeObject(java.lang.Object object)
  1. void
writeShort(short s)
  1. void
writeUCS2Char(char c)
  1. void
writeUTF(java.lang.String s)
Methods inherited from class java.io.FilterOutputStream
close, flush
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

Constructor Detail

MQDataOutputStream

  1. public MQDataOutputStream(java.io.OutputStream out)

Method Detail

setCCSID

  1. public void setCCSID(int ccsid)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Sets the Coded Character Set Identifier to be used for subsequent character write operations.
Specified by:
setCCSID in interface MQDataOutput
Parameters:
ccsid - new CCSID value
Throws:
java.io.IOException

getCCSID

  1. public int getCCSID()
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Returns the Coded Character Set Identifier currently used for character write operations
Specified by:
getCCSID in interface MQDataOutput
Returns:
current CCSID value
Throws:
java.io.IOException

setIntegerEncoding

  1. public void setIntegerEncoding( IntegerEncoding ie)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Sets the IntegerEncoding to be uesd for subsequence integer write operations. IntegerEncoding.UNDEFINED is treated as IntegerEncoding.NORMAL.
Specified by:
Parameters:
ie - new integer encoding value
Throws:
java.io.IOException
See Also:

getIntegerEncoding

  1. public IntegerEncoding getIntegerEncoding( )
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Returns the IntegerEncoding currently used for integer write operations.
Specified by:
Returns:
current integer encoding
Throws:
java.io.IOException
See Also:

setFloatEncoding

  1. public void setFloatEncoding(FloatEncoding fe)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Sets the FloatEncoding to be used for subsequent floating-point write operations. FloatEncoding.UNDEFINED is treated as FloatEncoding.IEEE_NORMAL.
Specified by:
Parameters:
fe - new floating-point encoding value
Throws:
java.io.IOException
See Also:

getFloatEncoding

  1. public FloatEncoding getFloatEncoding( )
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Returns the FloatEncoding currently used for floating-point write operations.
Specified by:
Returns:
current floating-point encoding
Throws:
java.io.IOException
See Also:

setDecimalEncoding

  1. public void setDecimalEncoding( DecimalEncoding de)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Sets the DecimalEncoding to be used for subsequent packed-decimal write operations. DecimalEncoding.UNDEFINED is treated as DecimalEncoding.NORMAL
Specified by:
Parameters:
de - new packed-decimal encoding value
Throws:
java.io.IOException
See Also:

getDecimalEncoding

  1. public DecimalEncoding getDecimalEncoding( )
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Returns the DecimalEncoding currently used for packed-decimal write operations.
Specified by:
Returns:
current packed-decimal encoding
Throws:
java.io.IOException
See Also:

setEncoding

  1. public void setEncoding(int encoding)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Sets all three encoding values - integer, floating-point and packed-decimal, using the WMQ encoding identifier. These will be used for subsequent numeric write operations.
Specified by:
setEncoding in interface MQDataOutput
Parameters:
encoding - integer representation of the new encoding
Throws:
java.io.IOException

getEncoding

  1. public int getEncoding()
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Return the WMQ encoding identifier representing the three encodings (integer, floating-point and packed-decimal) currently used for numeric write operations.
Specified by:
getEncoding in interface MQDataOutput
Returns:
integer representation of the current encoding
Throws:
java.io.IOException

getDataOffset

  1. public int getDataOffset()
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Returns the current offset of the cursor, relative to the position where this MQDataOutput object was originally created. Behaviour is undefined if the underlying data source has been manipulated without going through this MQDataOutput object.
Specified by:
Returns:
number of bytes read or skipped
Throws:
java.io.IOException

write

  1. public void write(int b)
  2. throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

  1. public void write(byte[] b)
  2. throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

  1. public void write(byte[] b,
  2. int off,
  3. int len)
  4. throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

writeByte

  1. public void writeByte(byte b)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a single (signed) byte
Specified by:
writeByte in interface MQDataOutput
Throws:
java.io.IOException

writeBytes

  1. public void writeBytes(byte[] b)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an array of bytes
Specified by:
writeBytes in interface MQDataOutput
Parameters:
b - array to write
Throws:
java.io.IOException

writeBytes

  1. public void writeBytes(byte[] b,
  2. int off,
  3. int len,
  4. byte pad)
  5. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a portion of an array of bytes into a fixed-length field, truncating or padding as appropriate. If the array is not long enough to fill the field, the remainder of the field is padded with a given byte.
Specified by:
writeBytes in interface MQDataOutput
Parameters:
b - source byte array
off - Offset of the start of the portion of b to write
len - Number of bytes to write
pad - Padding byte to use if b is not long enough to provide len bytes after off.
Throws:
java.io.IOException

writeMQBYTE

  1. public void writeMQBYTE(byte b)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a single (signed) byte
Specified by:
writeMQBYTE in interface MQDataOutput
Throws:
java.io.IOException

writeMQBYTE

  1. public void writeMQBYTE(byte[] b)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an array of bytes
Specified by:
writeMQBYTE in interface MQDataOutput
Parameters:
b - array to write
Throws:
java.io.IOException

writeMQBYTE

  1. public void writeMQBYTE(int fieldLen,
  2. byte[] b)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an array of bytes, truncated or null-padded as necessary, into a fixed-length field.
Specified by:
writeMQBYTE in interface MQDataOutput
Parameters:
fieldLen - Length of data to write
b - source byte array
Throws:
java.io.IOException

writeMQBYTE

  1. public void writeMQBYTE(int fieldLen,
  2. byte[] b,
  3. byte pad)
  4. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an array of bytes, truncated or padded as necessary, into a fixed-length field.
Specified by:
writeMQBYTE in interface MQDataOutput
Parameters:
fieldLen - Length of data to write
b - source byte array
pad - byte to pad with if necessary
Throws:
java.io.IOException

writeMQBYTE

  1. public void writeMQBYTE(int fieldLen,
  2. byte[] b,
  3. int off)
  4. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an array of bytes, from an offset and truncated or null-padded as necessary, into a fixed-length field
Specified by:
writeMQBYTE in interface MQDataOutput
Parameters:
fieldLen - Length of data to write
b - source byte array
off - offset of the start of the portion of b to write
Throws:
java.io.IOException

writeMQBYTE

  1. public void writeMQBYTE(int fieldLen,
  2. byte[] b,
  3. int off,
  4. byte pad)
  5. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an array of bytes, from an offset and truncated or padded as necessary, into a fixed-length field
Specified by:
writeMQBYTE in interface MQDataOutput
Parameters:
fieldLen - Length of data to write
b - source byte array
off - offset of the start of the portion of b to write
pad - value to use for padding
Throws:
java.io.IOException

writeMQBYTE8

  1. public void writeMQBYTE8(byte[] b)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an 8-byte field from a byte array, truncated or null-padded as necessary.
Specified by:
writeMQBYTE8 in interface MQDataOutput
Parameters:
b - source byte array
Throws:
java.io.IOException

writeMQBYTE8

  1. public void writeMQBYTE8(byte[] b,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an 8-byte field from a byte array, starting at a given offset, and truncating or null-padding as necessary.
Specified by:
writeMQBYTE8 in interface MQDataOutput
Parameters:
b - source byte array
off - offset into b of start of data
Throws:
java.io.IOException

writeMQBYTE16

  1. public void writeMQBYTE16(byte[] b)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 16-byte field from a byte array, truncated or null-padded as necessary.
Specified by:
Parameters:
b - source byte array
Throws:
java.io.IOException

writeMQBYTE16

  1. public void writeMQBYTE16(byte[] b,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 16-byte field from a byte array, starting at a given offset, and truncating or null-padding as necessary.
Specified by:
Parameters:
b - source byte array
off - offset into b of start of data
Throws:
java.io.IOException

writeMQBYTE24

  1. public void writeMQBYTE24(byte[] b)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 24-byte field from a byte array, truncated or null-padded as necessary.
Specified by:
Parameters:
b - source byte array
Throws:
java.io.IOException

writeMQBYTE24

  1. public void writeMQBYTE24(byte[] b,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 24-byte field from a byte array, starting at a given offset, and truncating or null-padding as necessary.
Specified by:
Parameters:
b - source byte array
off - offset into b of start of data
Throws:
java.io.IOException

writeMQBYTE32

  1. public void writeMQBYTE32(byte[] b)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 32-byte field from a byte array, truncated or null-padded as necessary.
Specified by:
Parameters:
b - source byte array
Throws:
java.io.IOException

writeMQBYTE32

  1. public void writeMQBYTE32(byte[] b,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 32-byte field from a byte array, starting at a given offset, and truncating or null-padding as necessary.
Specified by:
Parameters:
b - source byte array
off - offset into b of start of data
Throws:
java.io.IOException

writeMQCHAR

  1. public void writeMQCHAR(char c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a character to the stream as a single byte, converted according to the current CCSID. Fails if the character is not represented by a single byte.
Specified by:
writeMQCHAR in interface MQDataOutput
Throws:
java.io.IOException - if the character is not represented by a single byte, or for unexpected error

writeMQCHAR

  1. public void writeMQCHAR(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an array of characters to the stream, converted according to the current CCSID.
Specified by:
writeMQCHAR in interface MQDataOutput
Parameters:
c - character array to write.
Throws:
java.io.IOException

writeMQCHAR

  1. public void writeMQCHAR(int fieldLen,
  2. char[] c)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a fixed-length field from an array of characters, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
writeMQCHAR in interface MQDataOutput
Parameters:
fieldLen - number of bytes to write
c - character array to write.
Throws:
java.io.IOException

writeMQCHAR

  1. public void writeMQCHAR(int fieldLen,
  2. char[] c,
  3. char pad)
  4. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a fixed-length field from an array of characters, converted according to the current CCSID, and truncated or padded as necessary.
Specified by:
writeMQCHAR in interface MQDataOutput
Parameters:
fieldLen - number of bytes to write
c - character array to write.
pad - character to use for padding
Throws:
java.io.IOException

writeMQCHAR

  1. public void writeMQCHAR(int fieldLen,
  2. char[] c,
  3. int off)
  4. throws java.io.IOException
Description copied from interface: MQDataOutput
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.
Specified by:
writeMQCHAR in interface MQDataOutput
Parameters:
fieldLen - number of bytes to write
c - character array to write.
off - offset of start of data in c
Throws:
java.io.IOException

writeMQCHAR

  1. public void writeMQCHAR(int fieldLen,
  2. char[] c,
  3. int off,
  4. char pad)
  5. throws java.io.IOException
Description copied from interface: MQDataOutput
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.
Specified by:
writeMQCHAR in interface MQDataOutput
Parameters:
fieldLen - number of bytes to write
c - character array to write.
off - offset of start of data in c
pad - character to use for padding
Throws:
java.io.IOException

writeMQCHAR

  1. public void writeMQCHAR(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a String to the stream, converted according to the current CCSID.
Specified by:
writeMQCHAR in interface MQDataOutput
Parameters:
s - String to write.
Throws:
java.io.IOException

writeMQCHAR

  1. public void writeMQCHAR(int fieldLen,
  2. java.lang.String s)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a fixed-length field from a String, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
writeMQCHAR in interface MQDataOutput
Parameters:
fieldLen - number of bytes to write
s - String to write.
Throws:
java.io.IOException

writeMQCHAR

  1. public void writeMQCHAR(int fieldLen,
  2. java.lang.String s,
  3. char pad)
  4. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a fixed-length field from a String, converted according to the current CCSID, and truncated or padded as necessary.
Specified by:
writeMQCHAR in interface MQDataOutput
Parameters:
fieldLen - number of bytes to write
s - String to write.
pad - character to use for padding
Throws:
java.io.IOException

writeMQCHAR4

  1. public void writeMQCHAR4(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 4-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
writeMQCHAR4 in interface MQDataOutput
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR4

  1. public void writeMQCHAR4(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
writeMQCHAR4 in interface MQDataOutput
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR4

  1. public void writeMQCHAR4(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 4-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
writeMQCHAR4 in interface MQDataOutput
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR8

  1. public void writeMQCHAR8(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an 8-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
writeMQCHAR8 in interface MQDataOutput
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR8

  1. public void writeMQCHAR8(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
writeMQCHAR8 in interface MQDataOutput
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR8

  1. public void writeMQCHAR8(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an 8-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
writeMQCHAR8 in interface MQDataOutput
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR12

  1. public void writeMQCHAR12(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 12-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR12

  1. public void writeMQCHAR12(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR12

  1. public void writeMQCHAR12(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 12-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR16

  1. public void writeMQCHAR16(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 16-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR16

  1. public void writeMQCHAR16(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR16

  1. public void writeMQCHAR16(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 16-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR20

  1. public void writeMQCHAR20(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 20-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR20

  1. public void writeMQCHAR20(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR20

  1. public void writeMQCHAR20(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 20-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR24

  1. public void writeMQCHAR24(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 24-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR24

  1. public void writeMQCHAR24(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR24

  1. public void writeMQCHAR24(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 24-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR28

  1. public void writeMQCHAR28(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 28-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR28

  1. public void writeMQCHAR28(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR28

  1. public void writeMQCHAR28(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 28-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR32

  1. public void writeMQCHAR32(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 32-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR32

  1. public void writeMQCHAR32(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR32

  1. public void writeMQCHAR32(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 32-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR48

  1. public void writeMQCHAR48(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 48-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR48

  1. public void writeMQCHAR48(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR48

  1. public void writeMQCHAR48(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 48-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR64

  1. public void writeMQCHAR64(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 64-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR64

  1. public void writeMQCHAR64(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR64

  1. public void writeMQCHAR64(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 64-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR128

  1. public void writeMQCHAR128(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 128-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR128

  1. public void writeMQCHAR128(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR128

  1. public void writeMQCHAR128(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 128-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeMQCHAR256

  1. public void writeMQCHAR256(char[] c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 256-byte field from a character array, converted according to the current CCSID, and truncated or space-padded as necessary.
Specified by:
Parameters:
c - source character array
Throws:
java.io.IOException

writeMQCHAR256

  1. public void writeMQCHAR256(char[] c,
  2. int off)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
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
Specified by:
Parameters:
c - source character array
off - offset into c
Throws:
java.io.IOException

writeMQCHAR256

  1. public void writeMQCHAR256(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a 256-byte field from a String, converted according to the current CCSID, and truncated or space-padded as necessary
Specified by:
Parameters:
s - String to write
Throws:
java.io.IOException

writeUCS2Char

  1. public void writeUCS2Char(char c)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a single Unicode character as two-byte UCS-2. The byte order is determined by the current integer encoding.
Specified by:
Parameters:
c - character to write
Throws:
java.io.IOException

writeUTF

  1. public void writeUTF(java.lang.String s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a String using UTF-8. The String is preceeded by two bytes which give the length of the string. Compatible with DataInput.readUTF().
Specified by:
writeUTF in interface MQDataOutput
Parameters:
s - String to write
Throws:
java.io.IOException
See Also:
DataOutput.writeUTF(String)

writeShort

  1. public void writeShort(short s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a short as two bytes. The byte order is determined by the current integer encoding.
Specified by:
writeShort in interface MQDataOutput
Parameters:
s - short to write
Throws:
java.io.IOException
See Also:
DataOutput.writeShort(int)

writeMQSHORT

  1. public void writeMQSHORT(short s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a short as two bytes. The byte order is determined by the current integer encoding.
Specified by:
writeMQSHORT in interface MQDataOutput
Parameters:
s - short to write
Throws:
java.io.IOException

writeMQUSHORT

  1. public void writeMQUSHORT(int i)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a two-byte unsigned short integer. The byte order is determined by the current integer encoding.
Specified by:
Parameters:
i - integer to write
Throws:
java.io.IOException

writeInt

  1. public void writeInt(int i)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an int as four bytes. The byte order is determined by the current integer encoding.
Specified by:
writeInt in interface MQDataOutput
Parameters:
i - int to write
Throws:
java.io.IOException
See Also:
DataOutput.writeInt(int)

writeMQLONG

  1. public void writeMQLONG(int i)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an int as four bytes. The byte order is determined by the current integer encoding.
Specified by:
writeMQLONG in interface MQDataOutput
Parameters:
i - int to write
Throws:
java.io.IOException

writeMQULONG

  1. public void writeMQULONG(long l)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a four-byte unsigned integer. The byte order is determined by the current integer encoding.
Specified by:
writeMQULONG in interface MQDataOutput
Parameters:
l - integer to write
Throws:
java.io.IOException

writeMQINT32

  1. public void writeMQINT32(int i)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an int as four bytes. The byte order is determined by the current integer encoding.
Specified by:
writeMQINT32 in interface MQDataOutput
Parameters:
i - int to write
Throws:
java.io.IOException
See Also:
DataOutput.writeInt(int)

writeMQUINT32

  1. public void writeMQUINT32(long l)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes four-byte unsigned integer. The byte order is determined by the current integer encoding.
Specified by:
Parameters:
l - integer to write
Throws:
java.io.IOException

writeLong

  1. public void writeLong(long l)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a long as eight bytes. The byte order is determined by the current integer encoding.
Specified by:
writeLong in interface MQDataOutput
Parameters:
l - long to write
Throws:
java.io.IOException
See Also:
DataOutput.writeInt(int)

writeMQINT64

  1. public void writeMQINT64(long l)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a long as eight bytes. The byte order is determined by the current integer encoding.
Specified by:
writeMQINT64 in interface MQDataOutput
Parameters:
l - long to write
Throws:
java.io.IOException

writeMQUINT64

  1. public void writeMQUINT64(java.math.BigInteger i)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an eight-byte unsigned integer. The byte order is determined by the current integer encoding.
Specified by:
Parameters:
i - integer to write
Throws:
java.io.IOException

writeFloat

  1. public void writeFloat(float f)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a float as four bytes, according to the current floating-point encoding. If the S390 encoding is used, this uses the short HFP format. Note that conversion to this format from a Java float may lose precision.
Specified by:
writeFloat in interface MQDataOutput
Parameters:
f - float to write
Throws:
java.io.IOException
See Also:
DataOutput.writeFloat(float)

writeDouble

  1. public void writeDouble(double d)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a double as eight bytes, according to the current floating-point encoding. If the S390 encoding is used, this uses the long HFP format. Note that conversion to this format from a Java double may lose precision.
Specified by:
writeDouble in interface MQDataOutput
Parameters:
d - float to write
Throws:
java.io.IOException
See Also:
DataOutput.writeDouble(double)

writeDecimal

  1. public void writeDecimal(int fieldLen,
  2. java.math.BigInteger bi)
  3. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a packed-decimal integer into a fixed-length field. The current packed-decimal encoding determines the byte order.
Specified by:
writeDecimal in interface MQDataOutput
Parameters:
fieldLen - number of bytes to write
bi - the BigInteger to write as packed-decimal.
Throws:
java.io.IOException - if a malformed packed-decimal is encountered, or for other error.

writeDecimal2

  1. public void writeDecimal2(short s)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a two-byte packed decimal integer. The current packed-decimal encoding determines the byte order
Specified by:
Parameters:
s - integer to write as packed-decimal
Throws:
java.io.IOException

writeDecimal4

  1. public void writeDecimal4(int i)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a four-byte packed decimal integer. The current packed-decimal encoding determines the byte order
Specified by:
Parameters:
i - integer to write as packed-decimal
Throws:
java.io.IOException

writeDecimal8

  1. public void writeDecimal8(long l)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes an eight-byte packed decimal integer. The current packed-decimal encoding determines the byte order
Specified by:
Parameters:
l - integer to write as packed-decimal
Throws:
java.io.IOException

writeObject

  1. public void writeObject(java.lang.Object object)
  2. throws java.io.IOException
Description copied from interface: MQDataOutput
Writes a Serializable java Object to the stream
Specified by:
writeObject in interface MQDataOutput
Parameters:
object - object to serialize
Throws:
java.io.NotSerializableException - if object a non-Serializable object is encountered
java.io.IOException
See Also:
ObjectOutput.writeObject(Object)