home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2004 May / DPPCPRO0504.ISO / May / Seatools / SeaTools.iso / tools / en / webhelp / webhelp.cab / CommandBuffer.class (.txt) next >
Encoding:
Java Class File  |  2002-04-17  |  603 b   |  20 lines

  1. import java.util.Vector;
  2.  
  3. class CommandBuffer {
  4.    private Vector m_vCommand = new Vector();
  5.  
  6.    public synchronized void putCommand(WhCommand var1) {
  7.       this.m_vCommand.addElement(var1);
  8.    }
  9.  
  10.    public synchronized WhCommand getCommand() {
  11.       if (this.m_vCommand.size() > 0) {
  12.          WhCommand var1 = (WhCommand)this.m_vCommand.elementAt(0);
  13.          this.m_vCommand.removeElementAt(0);
  14.          return var1;
  15.       } else {
  16.          return null;
  17.       }
  18.    }
  19. }
  20.