public interface NIFWriter
Document instances.| Modifier and Type | Method and Description |
|---|---|
DocumentListWriter |
getDocumentListWriter()
Returns the
DocumentListWriter used by this parser. |
String |
getHttpContentType()
This method should return the HTTP content type string for the data that
is created by this writer.
|
void |
setDocumentListWriter(DocumentListWriter listWriter)
Sets the
DocumentListWriter used by this parser. |
String |
writeNIF(List<Document> document)
Writes the given lost of
Document instances as NIF data to a
String. |
void |
writeNIF(List<Document> document,
OutputStream os)
Writes the given lost of
Document instances as NIF data to the
given OutputStream. |
void |
writeNIF(List<Document> document,
Writer writer)
|
String writeNIF(List<Document> document)
Document instances as NIF data to a
String.document - the list of Document instances that should be written
as NIF datavoid writeNIF(List<Document> document, Writer writer)
Document instances as NIF data to the
given Writer.
Note that following the recommendations of the Jena framework we
highly recommend to use writeNIF(List, OutputStream) instead of
using a Writer since the OutputStream is not relying on a
specific encoding.
void writeNIF(List<Document> document, OutputStream os)
Document instances as NIF data to the
given OutputStream.document - the list of Document instances that should be written
as NIF dataos - the OutputStream to which the NIF data should be
writtenString getHttpContentType()
DocumentListWriter getDocumentListWriter()
DocumentListWriter used by this parser.DocumentListWriter used by this parservoid setDocumentListWriter(DocumentListWriter listWriter)
DocumentListWriter used by this parser.listWriter - the DocumentListWriter used by this parserCopyright © 2018. All rights reserved.