org.newdawn.dss.common
Class NullCommand

java.lang.Object
  extended byorg.newdawn.dss.common.Command
      extended byorg.newdawn.dss.common.NullCommand

public class NullCommand
extends Command

Empty command, doesn't do anything. Use as a blocker


Constructor Summary
NullCommand()
          Create new command
 
Method Summary
 void readImpl(java.io.DataInputStream in)
          Provided to allow subclasses to add their data
 void writeImpl(java.io.DataOutputStream out)
          Provided to allow subclasses to add their data
 
Methods inherited from class org.newdawn.dss.common.Command
getCode, getPriorityHint, getSequenceNumber, getTime, read, setPriorityHint, setSequenceNumber, setTime, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCommand

public NullCommand()
Create new command

Method Detail

writeImpl

public void writeImpl(java.io.DataOutputStream out)
               throws java.io.IOException
Description copied from class: Command
Provided to allow subclasses to add their data

Specified by:
writeImpl in class Command
Parameters:
out - The output stream to which the data should be written
Throws:
java.io.IOException - Indicates a failure to send the data
See Also:
Command.writeImpl(java.io.DataOutputStream)

readImpl

public void readImpl(java.io.DataInputStream in)
              throws java.io.IOException
Description copied from class: Command
Provided to allow subclasses to add their data

Specified by:
readImpl in class Command
Parameters:
in - The input stream from which to read the data
Throws:
java.io.IOException - Indicates a failure to read the data
See Also:
Command.readImpl(java.io.DataInputStream)