Package com.stardog.stark.io
Class CompressedRDFFormat
java.lang.Object
com.stardog.stark.io.CompressedRDFFormat
- All Implemented Interfaces:
FileFormat,RDFFormat
Class to represent the format of serialized RDF that is also compressed
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.stardog.stark.io.FileFormat
FileFormat.CompressionNested classes/interfaces inherited from interface com.stardog.stark.io.RDFFormat
RDFFormat.BinaryRDFFormat -
Constructor Summary
ConstructorsConstructorDescriptionCompressedRDFFormat(RDFFormat theFormat, FileFormat.Compression theCompression) -
Method Summary
Modifier and TypeMethodDescriptionReturn the base format.charset()The charset used by the formatReturn the compression type of this formatReturn the default file extension for this formatReturn the default mimetype for this formatReturn all supported file format extensionsReturn all supported mimetypes of this formatname()The friendly format nametoString()
-
Constructor Details
-
CompressedRDFFormat
public CompressedRDFFormat(@Nonnull RDFFormat theFormat, @Nonnull FileFormat.Compression theCompression)
-
-
Method Details
-
toString
-
baseFormat
Return the base format. For example, a ttl file compressed using gzip compression would have ttl as the base format and the compression asFileFormat.Compression.GZIP. Some compressions, notably ZIP, don't have a notion of a base format since they also act as an archive in which case this is meaningless.- Returns:
- the base format
-
compression
Return the compression type of this format- Returns:
- the compression
-
name
The friendly format name- Specified by:
namein interfaceFileFormat- Returns:
- the name
-
mimeTypes
Return all supported mimetypes of this format- Specified by:
mimeTypesin interfaceFileFormat- Returns:
- the mimetypes
-
extensions
Return all supported file format extensions- Specified by:
extensionsin interfaceFileFormat- Returns:
- the extensions
-
defaultMimeType
Return the default mimetype for this format- Specified by:
defaultMimeTypein interfaceFileFormat- Returns:
- the default mimetype
-
defaultExtension
Return the default file extension for this format- Specified by:
defaultExtensionin interfaceFileFormat- Returns:
- the default file extension
-
charset
The charset used by the format- Specified by:
charsetin interfaceFileFormat- Returns:
- the charset
-