Package com.stardog.stark.io
Interface FileFormat
-
- All Known Subinterfaces:
QueryResultFormat
,RDFFormat
,RDFFormat.BinaryRDFFormat
- All Known Implementing Classes:
CompressedRDFFormat
,FileFormatImpl
public interface FileFormat
Represents the format of a file or stream, such as XML or JSON.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FileFormat.Compression
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.nio.charset.Charset
charset()
The charset used by the formatjava.lang.String
defaultExtension()
Return the default file extension for this formatjava.lang.String
defaultMimeType()
Return the default mimetype for this formatjava.util.stream.Stream<java.lang.String>
extensions()
Return all supported file format extensionsjava.util.stream.Stream<java.lang.String>
mimeTypes()
Return all supported mimetypes of this formatjava.lang.String
name()
The friendly format name
-
-
-
Method Detail
-
name
@Nonnull java.lang.String name()
The friendly format name- Returns:
- the name
-
charset
@Nonnull default java.nio.charset.Charset charset()
The charset used by the format- Returns:
- the charset
-
defaultExtension
@Nonnull java.lang.String defaultExtension()
Return the default file extension for this format- Returns:
- the default file extension
-
defaultMimeType
@Nonnull java.lang.String defaultMimeType()
Return the default mimetype for this format- Returns:
- the default mimetype
-
extensions
@Nonnull java.util.stream.Stream<java.lang.String> extensions()
Return all supported file format extensions- Returns:
- the extensions
-
mimeTypes
@Nonnull java.util.stream.Stream<java.lang.String> mimeTypes()
Return all supported mimetypes of this format- Returns:
- the mimetypes
-
-