uk.ac.rdg.resc.jstyx.infernogrid
Class SexpParser

java.lang.Object
  extended by uk.ac.rdg.resc.jstyx.infernogrid.SexpParser

public class SexpParser
extends java.lang.Object

Class for parsing an InputStream into sets of S-expressions.

Author:
Jon Blower $Revision: 377 $ $Date: 2005-08-31 18:03:19 +0100 (Wed, 31 Aug 2005) $ $Log$ Revision 1.3 2005/08/31 17:03:19 jonblower Renamed "StyxFile*putStream*" to "CStyxFile*putStream*" for consistency with CStyxFile class Revision 1.2 2005/08/10 18:34:28 jonblower Implemented working S-expression parser Revision 1.1 2005/08/08 07:43:03 jonblower Initial import

Constructor Summary
SexpParser(java.io.InputStream is)
          Creates a new instance of SexpParser
SexpParser(java.io.InputStreamReader reader)
          Creates a new instance of SexpParser
 
Method Summary
 void close()
          Closes the underlying InputStream
 Sexpression getNextSexp()
           
static void main(java.lang.String[] args)
          Test function that reads the list of nodes from an Inferno Grid installation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SexpParser

public SexpParser(java.io.InputStream is)
Creates a new instance of SexpParser


SexpParser

public SexpParser(java.io.InputStreamReader reader)
Creates a new instance of SexpParser

Method Detail

getNextSexp

public Sexpression getNextSexp()
                        throws SexpParseException,
                               java.io.IOException
Returns:
the next Sexpression in the stream, or null if we have reached the end of the stream
Throws:
SexpParseException - if the input stream does not contain a valid Sexpression
java.io.IOException - if there was an error reading the input stream

close

public void close()
Closes the underlying InputStream


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Test function that reads the list of nodes from an Inferno Grid installation

Throws:
java.lang.Exception


Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.