|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.edit.verifiers.comm.bridge.JavaToCOutputStream
public class JavaToCOutputStream
The JavaToCOutputStream handles conversions from Java datatypes to C datatypes. This includes both UNICODE -> ANSI text conversions and integer data type conversions.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
JavaToCOutputStream(OutputStream out)
Constructor for JavaToCOutputStream. |
Method Summary | |
---|---|
static void |
main(String[] args)
Test harness |
void |
write(byte[] value)
|
void |
write(byte[] value,
int length)
|
void |
writeChar(char value)
|
void |
writeInt(int value)
|
void |
writeLong(int value)
|
void |
writeShort(short value)
|
void |
writeString(String value,
int length)
Write the String parameter padding upto length. |
void |
writeString(String value,
int length,
boolean nullTerminate)
Write the String parameter padding upto length. |
void |
writeString(String value,
int length,
char padding,
boolean nullTerminate)
Write the String parameter padding upto length. |
void |
writeUnsignedChar(char value)
|
void |
writeUnsignedInt(long value)
|
void |
writeUnsignedLong(long value)
|
void |
writeUnsignedShort(int value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public JavaToCOutputStream(OutputStream out)
Method Detail |
---|
public void write(byte[] value, int length) throws IOException
IOException
public void write(byte[] value) throws IOException
IOException
public void writeShort(short value) throws IOException
IOException
public void writeUnsignedShort(int value) throws IOException
IOException
public void writeInt(int value) throws IOException
IOException
public void writeUnsignedInt(long value) throws IOException
IOException
public void writeLong(int value) throws IOException
IOException
public void writeUnsignedLong(long value) throws IOException
IOException
public void writeChar(char value) throws IOException
IOException
public void writeUnsignedChar(char value) throws IOException
IOException
public void writeString(String value, int length) throws IOException
value
- The String to write to the output stream.length
- The number of bytes to write to the output stream.
IOException
public void writeString(String value, int length, boolean nullTerminate) throws IOException
value
- The String to write to the output stream.length
- The number of bytes to write to the output stream.nullTerminate
- true if the string should be null terminated, false if it should not
IOException
public void writeString(String value, int length, char padding, boolean nullTerminate) throws IOException
value
- The String to write to the output stream.length
- The number of bytes to write to the output stream.nullTerminate
- true if the string should be null terminated, false if it should not
IOException
public static void main(String[] args)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |