Package org.eclipse.rdf4j.common.io
Interface Sink
-
public interface SinkA Sink writes a data stream in a particularFileFormat.- Since:
- 3.5.0
- Author:
- Jeen Broekstra
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanacceptsFileFormat(FileFormat format)Check if this Sink accepts the suppliedFileFormat.FileFormatgetFileFormat()Get theFileFormatthis sink uses.
-
-
-
Method Detail
-
getFileFormat
FileFormat getFileFormat()
Get theFileFormatthis sink uses.- Returns:
- a
FileFormat. May not benull.
-
acceptsFileFormat
default boolean acceptsFileFormat(FileFormat format)
Check if this Sink accepts the suppliedFileFormat.- Parameters:
format- theFileFormatto check.- Returns:
trueif the sink accepts the supplied format,falseotherwise.
-
-