org.jrdf.graph.global.molecule
Class TextToMolecule

java.lang.Object
  extended by org.jrdf.graph.global.molecule.TextToMolecule

public class TextToMolecule
extends Object

Parses a string represetation of a molecule that follows basic NTriples escaping and turns it into a Molecule object. This is to be used primarily for serialization or similar purposes.

Version:
$Id: TextToMolecule.java 3130 2009-10-02 21:06:35Z newmana $
Author:
Andrew Newman

Constructor Summary
TextToMolecule(RegexMatcherFactory newRegexFactory, TripleParser newTripleParser, MoleculeFactory newMoleculeFactory)
           
 
Method Summary
 Molecule parse(InputStream in)
           
 Molecule parse(Reader reader)
           
 void parseLine(String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextToMolecule

public TextToMolecule(RegexMatcherFactory newRegexFactory,
                      TripleParser newTripleParser,
                      MoleculeFactory newMoleculeFactory)
Method Detail

parse

public Molecule parse(InputStream in)

parse

public Molecule parse(Reader reader)

parseLine

public void parseLine(String line)