Package | Description |
---|---|
com.google.common.net |
This package contains utility methods and classes for working with net addresses (numeric IP and
domain names).
|
Modifier and Type | Field and Description |
---|---|
static MediaType |
MediaType.AAC_AUDIO
Advanced Audio Coding.
|
static MediaType |
MediaType.ANY_APPLICATION_TYPE |
static MediaType |
MediaType.ANY_AUDIO_TYPE |
static MediaType |
MediaType.ANY_IMAGE_TYPE |
static MediaType |
MediaType.ANY_TEXT_TYPE |
static MediaType |
MediaType.ANY_TYPE |
static MediaType |
MediaType.ANY_VIDEO_TYPE |
static MediaType |
MediaType.APPLE_MOBILE_CONFIG
|
static MediaType |
MediaType.APPLE_PASSBOOK
|
static MediaType |
MediaType.APPLICATION_BINARY
This is a non-standard media type, but is commonly used in serving hosted binary files as it is
known not to trigger content sniffing in current browsers.
|
static MediaType |
MediaType.APPLICATION_XML_UTF_8
|
static MediaType |
MediaType.ATOM_UTF_8 |
static MediaType |
MediaType.BASIC_AUDIO
Basic Audio, as defined by RFC
2046.
|
static MediaType |
MediaType.BMP
Bitmap file format (
bmp
files). |
static MediaType |
MediaType.BZIP2 |
static MediaType |
MediaType.CACHE_MANIFEST_UTF_8 |
static MediaType |
MediaType.CRW
The Canon Image File
Format (
crw files), a widely-used "raw image" format for cameras. |
static MediaType |
MediaType.CSS_UTF_8 |
static MediaType |
MediaType.CSV_UTF_8 |
static MediaType |
MediaType.DART_UTF_8
Files in the dart
programming language.
|
static MediaType |
MediaType.EOT
Embedded OpenType fonts.
|
static MediaType |
MediaType.EPUB
As described in the International Digital Publishing Forum
EPUB is the distribution and interchange format standard for digital publications and
documents.
|
static MediaType |
MediaType.FLV_VIDEO
Flash video.
|
static MediaType |
MediaType.FORM_DATA |
static MediaType |
MediaType.GEO_JSON
Media type for the GeoJSON Format, a
geospatial data interchange format based on JSON.
|
static MediaType |
MediaType.GIF |
static MediaType |
MediaType.GZIP |
static MediaType |
MediaType.HAL_JSON
|
static MediaType |
MediaType.HEIF
|
static MediaType |
MediaType.HTML_UTF_8 |
static MediaType |
MediaType.I_CALENDAR_UTF_8 |
static MediaType |
MediaType.ICO |
static MediaType |
MediaType.JAVASCRIPT_UTF_8
RFC 4329 declares this to be the
correct media type for JavaScript, but
text/javascript may be
necessary in certain situations for compatibility. |
static MediaType |
MediaType.JOSE
|
static MediaType |
MediaType.JOSE_JSON
|
static MediaType |
MediaType.JP2K
|
static MediaType |
MediaType.JPEG |
static MediaType |
MediaType.JSON_UTF_8 |
static MediaType |
MediaType.KEY_ARCHIVE
As described in PKCS #12: Personal
Information Exchange Syntax Standard, PKCS #12 defines an archive file format for storing
many cryptography objects as a single file.
|
static MediaType |
MediaType.KML
|
static MediaType |
MediaType.KMZ
OGC KML (Keyhole Markup Language),
compressed using the ZIP format into KMZ archives.
|
static MediaType |
MediaType.L16_AUDIO
L16 audio, as defined by RFC 2586.
|
static MediaType |
MediaType.L24_AUDIO
L24 audio, as defined by RFC 3190.
|
static MediaType |
MediaType.MANIFEST_JSON_UTF_8
|
static MediaType |
MediaType.MBOX
The mbox database format.
|
static MediaType |
MediaType.MEDIA_PRESENTATION_DESCRIPTION
Media type for Dynamic Adaptive
Streaming over HTTP (DASH).
|
static MediaType |
MediaType.MICROSOFT_EXCEL
Microsoft Excel spreadsheets.
|
static MediaType |
MediaType.MICROSOFT_OUTLOOK
Microsoft Outlook items.
|
static MediaType |
MediaType.MICROSOFT_POWERPOINT
Microsoft Powerpoint presentations.
|
static MediaType |
MediaType.MICROSOFT_WORD
Microsoft Word documents.
|
static MediaType |
MediaType.MP4_AUDIO |
static MediaType |
MediaType.MP4_VIDEO |
static MediaType |
MediaType.MPEG_AUDIO |
static MediaType |
MediaType.MPEG_VIDEO |
static MediaType |
MediaType.NACL_APPLICATION
NaCl applications.
|
static MediaType |
MediaType.NACL_PORTABLE_APPLICATION
NaCl portable applications.
|
static MediaType |
MediaType.OCTET_STREAM |
static MediaType |
MediaType.OGG_AUDIO |
static MediaType |
MediaType.OGG_CONTAINER |
static MediaType |
MediaType.OGG_VIDEO |
static MediaType |
MediaType.OOXML_DOCUMENT |
static MediaType |
MediaType.OOXML_PRESENTATION |
static MediaType |
MediaType.OOXML_SHEET |
static MediaType |
MediaType.OPENDOCUMENT_GRAPHICS |
static MediaType |
MediaType.OPENDOCUMENT_PRESENTATION |
static MediaType |
MediaType.OPENDOCUMENT_SPREADSHEET |
static MediaType |
MediaType.OPENDOCUMENT_TEXT |
static MediaType |
MediaType.OPENSEARCH_DESCRIPTION_UTF_8
OpenSearch
Description files are XML files that describe how a website can be used as a search engine by
consumers (e.g.
|
static MediaType |
MediaType.PDF |
static MediaType |
MediaType.PLAIN_TEXT_UTF_8 |
static MediaType |
MediaType.PNG |
static MediaType |
MediaType.POSTSCRIPT |
static MediaType |
MediaType.PROTOBUF
|
static MediaType |
MediaType.PSD
|
static MediaType |
MediaType.QUICKTIME |
static MediaType |
MediaType.RDF_XML_UTF_8
RDF/XML documents, which are XML
serializations of Resource Description
Framework graphs.
|
static MediaType |
MediaType.RTF_UTF_8 |
static MediaType |
MediaType.SFNT
|
static MediaType |
MediaType.SHOCKWAVE_FLASH |
static MediaType |
MediaType.SKETCHUP
skp files produced by the 3D Modeling software SketchUp |
static MediaType |
MediaType.SOAP_XML_UTF_8
As described in RFC 3902, this constant
(
application/soap+xml ) is used to identify SOAP 1.2 message envelopes that have been
serialized with XML 1.0. |
static MediaType |
MediaType.SVG_UTF_8 |
static MediaType |
MediaType.TAR |
static MediaType |
MediaType.TEXT_JAVASCRIPT_UTF_8
RFC 4329 declares
application/javascript to be the correct media type for JavaScript, but this
may be necessary in certain situations for compatibility. |
static MediaType |
MediaType.THREE_GPP_VIDEO
The 3GP multimedia container format.
|
static MediaType |
MediaType.THREE_GPP2_VIDEO
The 3G2 multimedia container format.
|
static MediaType |
MediaType.TIFF |
static MediaType |
MediaType.TSV_UTF_8
|
static MediaType |
MediaType.VCARD_UTF_8 |
static MediaType |
MediaType.VND_REAL_AUDIO
Real Audio.
|
static MediaType |
MediaType.VND_WAVE_AUDIO
WAVE format, as defined by RFC 2361.
|
static MediaType |
MediaType.VORBIS_AUDIO
Vorbis Audio, as defined by RFC 5215.
|
static MediaType |
MediaType.VTT_UTF_8
As described in the VTT spec, this is
used for Web Video Text Tracks (WebVTT) files, used with the HTML5 track element.
|
static MediaType |
MediaType.WASM_APPLICATION
WASM applications.
|
static MediaType |
MediaType.WAX_AUDIO
Windows Media metafiles.
|
static MediaType |
MediaType.WEBM_AUDIO |
static MediaType |
MediaType.WEBM_VIDEO |
static MediaType |
MediaType.WEBP
|
static MediaType |
MediaType.WMA_AUDIO
Windows Media Audio.
|
static MediaType |
MediaType.WML_UTF_8
UTF-8 encoded Wireless Markup
Language.
|
static MediaType |
MediaType.WMV |
static MediaType |
MediaType.WOFF
Web Open Font Format (WOFF) defined by the W3C.
|
static MediaType |
MediaType.WOFF2
Web Open Font Format (WOFF)
version 2 defined by the W3C.
|
static MediaType |
MediaType.XHTML_UTF_8 |
static MediaType |
MediaType.XML_UTF_8
As described in RFC 3023, this constant
(
text/xml ) is used for XML documents that are "readable by casual users." APPLICATION_XML_UTF_8 is provided for documents that are intended for applications. |
static MediaType |
MediaType.XRD_UTF_8
Extensible Resource Descriptors.
|
static MediaType |
MediaType.ZIP |
Modifier and Type | Method and Description |
---|---|
static MediaType |
MediaType.create(String type,
String subtype)
Creates a new media type with the given type and subtype.
|
static MediaType |
MediaType.parse(String input)
Parses a media type from its string representation.
|
MediaType |
MediaType.withCharset(Charset charset)
Returns a new instance with the same type and subtype as this instance, with the
charset parameter set to the name of the given charset. |
MediaType |
MediaType.withoutParameters()
Returns a new instance with the same type and subtype as this instance, but without any
parameters.
|
MediaType |
MediaType.withParameter(String attribute,
String value)
Replaces all parameters with the given attribute with a single parameter with the
given value.
|
MediaType |
MediaType.withParameters(Multimap<String,String> parameters)
Replaces all parameters with the given parameters.
|
MediaType |
MediaType.withParameters(String attribute,
Iterable<String> values)
Replaces all parameters with the given attribute with parameters using the given
values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MediaType.is(MediaType mediaTypeRange)
Returns
true if this instance falls within the range (as defined by the HTTP Accept header) given
by the argument according to three criteria:
The type of the argument is the wildcard or equal to the type of this instance. |
Copyright © 2010–2020. All rights reserved.