Package com.floragunn.codova.documents
Class Format
java.lang.Object
com.floragunn.codova.documents.Format
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormat(String name, Format.Encoding encoding, com.fasterxml.jackson.core.JsonFactory jsonFactory, String fileNameSuffixPattern, String mediaType, String... mediaTypeAliases) Format(String name, Format.Encoding encoding, String jsonFactoryClass, String fileNameSuffixPattern, String mediaType, String... mediaTypeAliases) -
Method Summary
Modifier and TypeMethodDescriptionstatic FormatgetByContentType(String contentType) static FormatgetByFileName(String fileName) static FormatgetByFileName(String fileName, Format fallbackDocType) static FormatgetByMediaType(String mediaType) com.fasterxml.jackson.core.JsonFactorygetName()booleanisBinary()static FormatpeekByContentType(String contentType) toString()
-
Field Details
-
JSON
-
YAML
-
SMILE
-
-
Constructor Details
-
Format
public Format(String name, Format.Encoding encoding, com.fasterxml.jackson.core.JsonFactory jsonFactory, String fileNameSuffixPattern, String mediaType, String... mediaTypeAliases) -
Format
-
-
Method Details
-
getByContentType
- Throws:
Format.UnknownDocTypeException
-
peekByContentType
-
getByFileName
-
getByFileName
- Throws:
Format.UnknownDocTypeException
-
getByMediaType
- Throws:
Format.UnknownDocTypeException
-
getMediaType
-
getContentType
-
getJsonFactory
public com.fasterxml.jackson.core.JsonFactory getJsonFactory() -
getContentTypeAliases
-
getName
-
toString
-
isBinary
public boolean isBinary() -
getDefaultCharset
-