public class XMLCellLikeOutputParser extends OutputParser
Constructor and Description |
---|
XMLCellLikeOutputParser()
Resorts to the super constructor
|
Modifier and Type | Method and Description |
---|---|
Document |
generateDocument(CellLikePsystem psystem)
Generates the document of a P-System
|
boolean |
parse(Psystem psystem,
java.io.OutputStream stream)
Parses the P system to an OutputStream
|
boolean |
parse(Psystem psystem,
java.io.Writer writer)
Parses the P system to an Writer instance
|
public XMLCellLikeOutputParser()
public Document generateDocument(CellLikePsystem psystem)
psystem
- the P-System which document will be generatedpublic boolean parse(Psystem psystem, java.io.OutputStream stream)
OutputParser
parse
in class OutputParser
psystem
- a P-System to be parsedstream
- an OutputStreamOutputParser.parse(org.gcn.plinguacore.util.psystem.Psystem,
java.io.OutputStream)
public boolean parse(Psystem psystem, java.io.Writer writer)
OutputParser
parse
in class OutputParser
psystem
- a P-System to be parsedwriter
- a WriterOutputParser.parse(org.gcn.plinguacore.util.psystem.Psystem,
java.io.Writer)