Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.verifiers.comm.bridge
Class CToJavaInputStream

java.lang.Object
  extended by com.ibm.etools.iseries.edit.verifiers.comm.bridge.CToJavaInputStream

public class CToJavaInputStream
extends Object


Field Summary
static String copyright
           
 
Constructor Summary
CToJavaInputStream(InputStream in)
          Constructor for CToJavaInputStream.
 
Method Summary
 byte[] read(int byteCount)
          Read and return the raw bytes
 char readChar()
           
 int readInt()
           
 int readLong()
           
 short readShort()
           
 String readString(int byteCount)
          Read a null terminated string from the input stream.
 String readString(int byteCount, boolean nullTerminated)
          Read a string from the input stream.
 String readString(int byteCount, boolean nullTerminated, boolean force, boolean trim)
          Read a string from the input stream.
 char readUnsignedChar()
           
 long readUnsignedInt()
           
 long readUnsignedLong()
           
 int readUnsignedShort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

CToJavaInputStream

public CToJavaInputStream(InputStream in)
Constructor for CToJavaInputStream.

Method Detail

readShort

public short readShort()
                throws IOException
Throws:
IOException

readUnsignedShort

public int readUnsignedShort()
                      throws IOException
Throws:
IOException

readInt

public int readInt()
            throws IOException
Throws:
IOException

readUnsignedInt

public long readUnsignedInt()
                     throws IOException
Throws:
IOException

readLong

public int readLong()
             throws IOException
Throws:
IOException

readUnsignedLong

public long readUnsignedLong()
                      throws IOException
Throws:
IOException

readChar

public char readChar()
              throws IOException
Throws:
IOException

readUnsignedChar

public char readUnsignedChar()
                      throws IOException
Throws:
IOException

readString

public String readString(int byteCount)
                  throws IOException
Read a null terminated string from the input stream.

Parameters:
byteCount - The number of bytes to read from the input stream.
Throws:
IOException

readString

public String readString(int byteCount,
                         boolean nullTerminated)
                  throws IOException
Read a string from the input stream.

Throws:
IOException

readString

public String readString(int byteCount,
                         boolean nullTerminated,
                         boolean force,
                         boolean trim)
                  throws IOException
Read a string from the input stream.

Throws:
IOException

read

public byte[] read(int byteCount)
            throws IOException
Read and return the raw bytes

Throws:
IOException

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.