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, writeIteratorclose, flush, write, write, write, writeln, writeln, writelnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, flushclose, flushclose, flushclose, flushclose, flushpublic DlgpWriter()
public DlgpWriter(OutputStream out)
public DlgpWriter(Writer out)
public DlgpWriter(File file) throws IOException
IOExceptionpublic DlgpWriter(String path) throws IOException
path - the file pathIOExceptionpublic DlgpWriter write(Directive d) throws IOException
IOExceptionpublic DlgpWriter writeComment(String comment) throws IOException
writeComment in interface WriterwriteComment in class AbstractGraalWriterIOExceptionpublic DlgpWriter write(AtomSet atomset) throws IOException
IOExceptionpublic DlgpWriter write(Atom atom) throws IOException
IOExceptionpublic DlgpWriter write(Rule rule) throws IOException
IOExceptionpublic DlgpWriter write(NegativeConstraint constraint) throws IOException
IOExceptionpublic DlgpWriter write(ConjunctiveQuery query) throws IOException
IOExceptionpublic DlgpWriter write(Prefix prefix) throws IOException
IOExceptionprotected void writeLabel(String label) throws IOException
IOExceptionprotected void writeAtomSet(CloseableIterator<Atom> atomsetIt, boolean addCarriageReturn) throws IOException
IOExceptionprotected void writeStandardAtom(Atom atom) throws IOException
writeStandardAtom in class AbstractGraalWriterIOExceptionprotected void writeEquality(Term term, Term term2) throws IOException
writeEquality in class AbstractGraalWriterIOExceptionprotected void writeBottom()
throws IOException
writeBottom in class AbstractGraalWriterIOExceptionprotected void writeTerm(Term t) throws IOException
IOExceptionprotected void writeLiteral(Literal l) throws IOException
IOExceptionprotected void writePredicate(Predicate p) throws IOException
IOExceptionprotected void writeURI(URI uri) throws IOException
IOExceptionCopyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.