Package org.apache.any23.writer
Interface TripleWriterFactory
-
- All Superinterfaces:
WriterFactory
- All Known Implementing Classes:
JSONLDWriterFactory,JSONWriterFactory,NQuadsWriterFactory,NTriplesWriterFactory,RDFXMLWriterFactory,TriXWriterFactory,TurtleWriterFactory,URIListWriterFactory
public interface TripleWriterFactoryBase interface for constructors ofTripleHandlerimplementations that write to anOutputStreamusing a particularFileFormat.- Author:
- Hans Brende (hansbrende@apache.org)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default StringgetMimeType()Deprecated.since 2.3.default org.eclipse.rdf4j.rio.RDFFormatgetRdfFormat()Deprecated.since 2.3.default FormatWritergetRdfWriter(OutputStream os)Deprecated.since 2.3.SettingsgetSupportedSettings()TripleFormatgetTripleFormat()TripleHandlergetTripleWriter(OutputStream out, Settings settings)-
Methods inherited from interface org.apache.any23.writer.WriterFactory
getIdentifier
-
-
-
-
Method Detail
-
getRdfFormat
@Deprecated default org.eclipse.rdf4j.rio.RDFFormat getRdfFormat()
Deprecated.since 2.3. UsegetTripleFormat()instead.- Specified by:
getRdfFormatin interfaceWriterFactory- Returns:
- the
RDFFormatbeing handled
-
getTripleFormat
TripleFormat getTripleFormat()
- Returns:
- the format used to write to
OutputStreams
-
getMimeType
@Deprecated default String getMimeType()
Deprecated.since 2.3. UsegetTripleFormat().getMimeType()instead.- Specified by:
getMimeTypein interfaceWriterFactory- Returns:
- a String representing the Mimetype being handled in this Writer
-
getRdfWriter
@Deprecated default FormatWriter getRdfWriter(OutputStream os)
Deprecated.since 2.3. UsegetTripleWriter(OutputStream, Settings)instead.- Specified by:
getRdfWriterin interfaceWriterFactory- Parameters:
os- aOutputStreamto be written to the FormatWriter handler- Returns:
- a
FormatWriterready to be implemented
-
getSupportedSettings
Settings getSupportedSettings()
- Returns:
- the settings supported by writers produced by this factory
-
getTripleWriter
TripleHandler getTripleWriter(OutputStream out, Settings settings)
- Parameters:
out- theOutputStreamto write tosettings- the settings with which to configure the writer- Returns:
- a
TripleHandlerwhich writes to the specifiedOutputStream - Throws:
NullPointerException- if the output stream or settings is nullIllegalArgumentException- if the settings are not correctly configured
-
-