org.xnap.plugin.gift.net.lexer
Class StreamLexer

java.lang.Object
  extended by org.xnap.plugin.gift.net.lexer.StreamLexer

public class StreamLexer
extends java.lang.Object

StreamLexer Parses GiFT-Commands

Version:
CVS $Id: StreamLexer.java,v 1.1 2003/10/05 00:20:32 squig Exp $
Author:
Tammo van Lessen

Constructor Summary
StreamLexer(java.io.InputStream in)
          Constructor for StreamLexer.
 
Method Summary
static void main(java.lang.String[] args)
          Main method, only for testing purposes.
 Command parse()
          Parses the Inputstream and returns the corresponding command object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamLexer

public StreamLexer(java.io.InputStream in)
Constructor for StreamLexer.

Parameters:
in - the input stream
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Main method, only for testing purposes.

Parameters:
args - commandline args
Throws:
java.io.IOException

parse

public Command parse()
              throws java.io.IOException
Parses the Inputstream and returns the corresponding command object. Blocks until a whole command is read from the stream.

Returns:
the parsed command object
Throws:
java.io.IOException


Copyright © 2001-2005 XNap Team. All Rights Reserved.