public class PrettyTurtleWriter extends TurtleWriter
endRDF() is called. If the number of
triples exceed a limit an exeception wil lbe thrown.| Modifier and Type | Field and Description |
|---|---|
static int |
LIMIT
Maximum number of triples that will be buffered
|
| Constructor and Description |
|---|
PrettyTurtleWriter(OutputStream out) |
PrettyTurtleWriter(Writer w) |
| Modifier and Type | Method and Description |
|---|---|
void |
endRDF() |
void |
handleComment(String comment) |
void |
handleStatement(org.openrdf.model.Statement st) |
void |
startRDF() |
void |
write(org.openrdf.model.Model m)
A convenience method to write a model directly without extra buffering.
|
writeLiteralclosePreviousStatement, getRDFFormat, handleNamespace, writeBNode, writeCommentLine, writeNamespace, writePredicate, writeResource, writeURI, writeValuegetSupportedSettings, getWriterConfig, set, setWriterConfigpublic static final int LIMIT
public PrettyTurtleWriter(Writer w)
public PrettyTurtleWriter(OutputStream out)
public void startRDF()
throws org.openrdf.rio.RDFHandlerException
startRDF in interface org.openrdf.rio.RDFHandlerstartRDF in class org.openrdf.rio.turtle.TurtleWriterorg.openrdf.rio.RDFHandlerExceptionpublic void endRDF()
throws org.openrdf.rio.RDFHandlerException
endRDF in interface org.openrdf.rio.RDFHandlerendRDF in class org.openrdf.rio.turtle.TurtleWriterorg.openrdf.rio.RDFHandlerExceptionpublic void handleComment(String comment) throws org.openrdf.rio.RDFHandlerException
handleComment in interface org.openrdf.rio.RDFHandlerhandleComment in class org.openrdf.rio.turtle.TurtleWriterorg.openrdf.rio.RDFHandlerExceptionpublic void handleStatement(org.openrdf.model.Statement st)
throws org.openrdf.rio.RDFHandlerException
handleStatement in interface org.openrdf.rio.RDFHandlerhandleStatement in class org.openrdf.rio.turtle.TurtleWriterorg.openrdf.rio.RDFHandlerExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.