public class DlgpWriter extends AbstractGraalWriter
Constructor and Description |
---|
DlgpWriter()
Write into the standard output.
|
DlgpWriter(File file) |
DlgpWriter(OutputStream out) |
DlgpWriter(String path)
Write into a file specified by the path file.
|
DlgpWriter(Writer out) |
Modifier and Type | Method and Description |
---|---|
DlgpWriter |
write(Atom atom) |
DlgpWriter |
write(AtomSet atomset) |
DlgpWriter |
write(ConjunctiveQuery query) |
DlgpWriter |
write(Directive d) |
DlgpWriter |
write(NegativeConstraint constraint) |
DlgpWriter |
write(Prefix prefix) |
DlgpWriter |
write(Rule rule) |
protected void |
writeAtomSet(CloseableIterator<Atom> atomsetIt,
boolean addCarriageReturn) |
protected void |
writeBottom() |
DlgpWriter |
writeComment(String comment) |
protected void |
writeEquality(Term term,
Term term2) |
protected void |
writeLabel(String label) |
protected void |
writeLiteral(Literal l) |
protected void |
writePredicate(Predicate p) |
protected void |
writeStandardAtom(Atom atom) |
protected void |
writeTerm(Term t) |
static String |
writeToString(Object o) |
protected void |
writeURI(URI uri) |
write, write, writeAtom, writeCloseableIterable, writeCloseableIterator, writeIterable, writeIterator
close, flush, write, write, write, writeln, writeln, writeln
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, flush
close, flush
close, flush
close, flush
close, flush
public DlgpWriter()
public DlgpWriter(OutputStream out)
public DlgpWriter(Writer out)
public DlgpWriter(File file) throws IOException
IOException
public DlgpWriter(String path) throws IOException
path
- the file pathIOException
public DlgpWriter write(Directive d) throws IOException
IOException
public DlgpWriter writeComment(String comment) throws IOException
writeComment
in interface Writer
writeComment
in class AbstractGraalWriter
IOException
public DlgpWriter write(AtomSet atomset) throws IOException
IOException
public DlgpWriter write(Atom atom) throws IOException
IOException
public DlgpWriter write(Rule rule) throws IOException
IOException
public DlgpWriter write(NegativeConstraint constraint) throws IOException
IOException
public DlgpWriter write(ConjunctiveQuery query) throws IOException
IOException
public DlgpWriter write(Prefix prefix) throws IOException
IOException
protected void writeLabel(String label) throws IOException
IOException
protected void writeAtomSet(CloseableIterator<Atom> atomsetIt, boolean addCarriageReturn) throws IOException
IOException
protected void writeStandardAtom(Atom atom) throws IOException
writeStandardAtom
in class AbstractGraalWriter
IOException
protected void writeEquality(Term term, Term term2) throws IOException
writeEquality
in class AbstractGraalWriter
IOException
protected void writeBottom() throws IOException
writeBottom
in class AbstractGraalWriter
IOException
protected void writeTerm(Term t) throws IOException
IOException
protected void writeLiteral(Literal l) throws IOException
IOException
protected void writePredicate(Predicate p) throws IOException
IOException
protected void writeURI(URI uri) throws IOException
IOException
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.