public class CounterSetFormat extends info.aduna.lang.FileFormat implements Iterable<CounterSetFormat>
ICounterSets.| Modifier and Type | Field and Description |
|---|---|
static CounterSetFormat |
HTML
XML properties file using
text/html and UTF-8. |
static CounterSetFormat |
TEXT
Text properties file using
text/plain and
UTF-8. |
static CounterSetFormat |
XML
XML properties file using
application/xml and
UTF-8. |
| Constructor and Description |
|---|
CounterSetFormat(String name,
Collection<String> mimeTypes,
Charset charset,
Collection<String> fileExtensions)
Creates a new RDFFormat object.
|
| Modifier and Type | Method and Description |
|---|---|
static CounterSetFormat |
forMIMEType(String mimeType)
Tries to determine the appropriate file format based on the a MIME type
that describes the content type.
|
static CounterSetFormat |
forMIMEType(String mimeType,
CounterSetFormat fallback)
Tries to determine the appropriate file format based on the a MIME type
that describes the content type.
|
static Iterator<CounterSetFormat> |
getFormats()
Alternative static method signature.
|
Iterator<CounterSetFormat> |
iterator()
A thread-safe iterator that will visit all known formats (declared by
Iterable). |
static void |
register(CounterSetFormat format)
Registers the specified format.
|
equals, getCharset, getDefaultFileExtension, getDefaultMIMEType, getFileExtensions, getMIMETypes, getName, hasCharset, hasDefaultFileExtension, hasDefaultMIMEType, hasFileExtension, hashCode, hasMIMEType, matchFileName, matchFileName, matchMIMEType, matchMIMEType, toStringpublic static final CounterSetFormat TEXT
text/plain and
UTF-8.public static final CounterSetFormat XML
application/xml and
UTF-8.public static final CounterSetFormat HTML
text/html and UTF-8.public CounterSetFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions)
name - The name of the RDF file format, e.g. "RDF/XML".mimeTypes - The MIME types of the RDF file format, e.g.
application/rdf+xml for the RDF/XML file format.
The first item in the list is interpreted as the default
MIME type for the format.charset - The default character encoding of the RDF file format.
Specify null if not applicable.fileExtensions - The RDF format's file extensions, e.g. rdf for
RDF/XML files. The first item in the list is interpreted
as the default file extension for the format.public Iterator<CounterSetFormat> iterator()
Iterable).iterator in interface Iterable<CounterSetFormat>public static Iterator<CounterSetFormat> getFormats()
public static void register(CounterSetFormat format)
public static CounterSetFormat forMIMEType(String mimeType)
mimeType - A MIME type, e.g. "text/html".CounterSetFormat object if the MIME type was
recognized, or null otherwise.#forMIMEType(String,PropertiesFormat),
FileFormat.getMIMETypes()public static CounterSetFormat forMIMEType(String mimeType, CounterSetFormat fallback)
mimeType - A file name.CounterSetFormat that matches the MIME type, or the
fallback format if the extension was not recognized.forMIMEType(String),
FileFormat.getMIMETypes()Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.