Rational Developer for i
7.5.0

com.ibm.etools.systems.as400.debug.protocol
Class PStdTime

java.lang.Object
  extended by com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Base
      extended by com.ibm.etools.systems.as400.debug.protocol.PStdTime

public class PStdTime
extends PROTOCOL_Base


Field Summary
 
Fields inherited from class com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Base
_byteBuffer, DISPLAYDETAIL
 
Constructor Summary
PStdTime(int secs, int minutes, int hours)
           
 
Method Summary
protected  int fixedLen()
          Return the length of the fixed component
protected  int toDataStreams(DataOutputStream fixedData, DataOutputStream varData, int baseOffset)
          Outputs the class into two byte streams for fixed and variable data, corresponding to the EPDC protocol.
protected  int varLen()
          Return the length of the variable component
 void writeFormattedEPDC(DataOutputStream dataOutputStream, byte formatFlags)
          Write to the output stream an XML formatted representation of this EPDC class NOTE: This method should be implemented in all EPDC classes
 
Methods inherited from class com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Base
bytesAvailable, dumpEPDC, getByteBuffer, getDataInputStream, getEPDCEngineSession, getEPDCVersion, getInternalName, getOffset, getPlatformIdentifier, intAsBytes, markOffset, posBuffer, readChar, readExtString, readInt, readOffset, readShort, readStdString, setEPDCEngineSession, skipBytes, totalBytes, totalBytes, writeChar, writeInt, writeOffset, writeOffsetOrZero, writeShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PStdTime

public PStdTime(int secs,
                int minutes,
                int hours)
Method Detail

toDataStreams

protected int toDataStreams(DataOutputStream fixedData,
                            DataOutputStream varData,
                            int baseOffset)
                     throws IOException
Outputs the class into two byte streams for fixed and variable data, corresponding to the EPDC protocol.

Parameters:
fixedData - output stream for the fixed data
varData - output stream for the variable data
baseOffset - the base offset to add to all offsets
Returns:
total size of written data
Throws:
IOException - if an I/O error occurs
BadEPDCCommandException - if the EPDC command is structured incorrectly

fixedLen

protected int fixedLen()
Return the length of the fixed component


varLen

protected int varLen()
Return the length of the variable component


writeFormattedEPDC

public void writeFormattedEPDC(DataOutputStream dataOutputStream,
                               byte formatFlags)
Description copied from class: PROTOCOL_Base
Write to the output stream an XML formatted representation of this EPDC class NOTE: This method should be implemented in all EPDC classes

Specified by:
writeFormattedEPDC in class PROTOCOL_Base

Rational Developer for i
7.5.0

Copyright 2009 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.