solar.service.dan.lang
Interface SpecParser

All Known Implementing Classes:
XmlSpecParser

public interface SpecParser

Interface for the parser of graph specifications.

Version:
$Id: SpecParser.java,v 1.1 2003/09/25 15:38:53 glchen Exp $
Author:
Guanling Chen

Method Summary
 GraphSpec parse(java.io.File file)
          Parse the graph spec from a file.
 GraphSpec parse(java.io.InputStream in)
          Parse the graph spec from an input stream.
 GraphSpec parse(java.io.Reader in)
          Parse the graph spec from a reader.
 GraphSpec parse(java.lang.String xml)
          Parse the graph spec from a string.
 

Method Detail

parse

public GraphSpec parse(java.io.File file)
                throws ParsingException
Parse the graph spec from a file.

ParsingException

parse

public GraphSpec parse(java.io.InputStream in)
                throws ParsingException
Parse the graph spec from an input stream.

ParsingException

parse

public GraphSpec parse(java.io.Reader in)
                throws ParsingException
Parse the graph spec from a reader.

ParsingException

parse

public GraphSpec parse(java.lang.String xml)
                throws ParsingException
Parse the graph spec from a string.

ParsingException