com.enderak.procol.common.net
Class ProColOutgoingMessage

java.lang.Object
  |
  +--com.enderak.procol.common.net.ProColMessage
        |
        +--com.enderak.procol.common.net.ProColOutgoingMessage

public class ProColOutgoingMessage
extends ProColMessage

Holds information for an outgoing message

Author:
Justin Dieters

Field Summary
 
Fields inherited from class com.enderak.procol.common.net.ProColMessage
messageID, requestCode
 
Constructor Summary
ProColOutgoingMessage(int messageIDIn, int requestCodeIn, java.io.DataInputStream dataStreamIn)
          Creates a new message
ProColOutgoingMessage(int messageIDIn, int requestCodeIn, java.io.DataInputStream dataStreamIn, java.io.File fileIn)
          Creates a new message with both a data stream and a file
ProColOutgoingMessage(int messageIDIn, int requestCodeIn, java.io.File fileIn)
          Creates a new message
 
Method Summary
 java.io.DataInputStream getDataInputStream()
          gets the dataInputStream for this message
 
Methods inherited from class com.enderak.procol.common.net.ProColMessage
isError, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProColOutgoingMessage

public ProColOutgoingMessage(int messageIDIn,
                             int requestCodeIn,
                             java.io.DataInputStream dataStreamIn)
Creates a new message

Parameters:
messageIDIn - The message ID
requestCodeIn - The request code
dataStreamIn - The data stream to get data for the data section from

ProColOutgoingMessage

public ProColOutgoingMessage(int messageIDIn,
                             int requestCodeIn,
                             java.io.File fileIn)
Creates a new message

Parameters:
messageIDIn - The message ID
requestCodeIn - The request code
fileIn - The file to get data for the data section from

ProColOutgoingMessage

public ProColOutgoingMessage(int messageIDIn,
                             int requestCodeIn,
                             java.io.DataInputStream dataStreamIn,
                             java.io.File fileIn)
Creates a new message with both a data stream and a file

Parameters:
messageIDIn - The message ID
requestCodeIn - The request code
dataStreamIn - The file to get data for the data section from
fileIn - The data stream to get data for the data section from
Method Detail

getDataInputStream

public java.io.DataInputStream getDataInputStream()
gets the dataInputStream for this message

Returns:
The DataInputStream