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
Media type for 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
Media type for Apple over-the-air mobile configuration
profiles.
|
static MediaType |
MediaType.APPLE_PASSBOOK
Media type for 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
Media type for Basic Audio, as defined by RFC 2046.
|
static MediaType |
MediaType.BMP |
static MediaType |
MediaType.BZIP2 |
static MediaType |
MediaType.CACHE_MANIFEST_UTF_8 |
static MediaType |
MediaType.CRW
The media type for 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
Media type for dart files.
|
static MediaType |
MediaType.EOT
Media type for 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
Media type for Flash video.
|
static MediaType |
MediaType.FORM_DATA |
static MediaType |
MediaType.GIF |
static MediaType |
MediaType.GZIP |
static MediaType |
MediaType.HAL_JSON
Media type for the JSON
Hypertext Application Language (HAL) documents.
|
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.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
Media type for OGC KML (Keyhole Markup
Language).
|
static MediaType |
MediaType.KMZ
Media type for OGC KML (Keyhole Markup
Language), compressed using the ZIP format into KMZ archives.
|
static MediaType |
MediaType.L16_AUDIO
Media type for L16 audio, as defined by RFC
2586.
|
static MediaType |
MediaType.L24_AUDIO
Media type for L24 audio, as defined by RFC
3190.
|
static MediaType |
MediaType.MANIFEST_JSON_UTF_8
Media type for the Manifest for a web
application.
|
static MediaType |
MediaType.MBOX
Media type for the mbox database format.
|
static MediaType |
MediaType.MICROSOFT_EXCEL |
static MediaType |
MediaType.MICROSOFT_POWERPOINT |
static MediaType |
MediaType.MICROSOFT_WORD |
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
Media type for NaCl applications.
|
static MediaType |
MediaType.NACL_PORTABLE_APPLICATION
Media type for 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.PDF |
static MediaType |
MediaType.PLAIN_TEXT_UTF_8 |
static MediaType |
MediaType.PNG |
static MediaType |
MediaType.POSTSCRIPT |
static MediaType |
MediaType.PROTOBUF
|
static MediaType |
MediaType.PSD
The media type for the Photoshop File Format (
psd files) as defined by IANA, and
found in /etc/mime.types , e.g. |
static MediaType |
MediaType.QUICKTIME |
static MediaType |
MediaType.RDF_XML_UTF_8 |
static MediaType |
MediaType.RTF_UTF_8 |
static MediaType |
MediaType.SFNT
|
static MediaType |
MediaType.SHOCKWAVE_FLASH |
static MediaType |
MediaType.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
Media type for the 3GP multimedia container format.
|
static MediaType |
MediaType.THREE_GPP2_VIDEO
Media type for 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
Media type for Real Audio.
|
static MediaType |
MediaType.VND_WAVE_AUDIO
Media type for WAVE format, as defined by RFC
2361.
|
static MediaType |
MediaType.VORBIS_AUDIO
Media type for 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
Media type for WASM applications.
|
static MediaType |
MediaType.WAX_AUDIO
Media type for Windows Media metafiles.
|
static MediaType |
MediaType.WEBM_AUDIO |
static MediaType |
MediaType.WEBM_VIDEO |
static MediaType |
MediaType.WEBP |
static MediaType |
MediaType.WMA_AUDIO
Media type for Windows Media Audio.
|
static MediaType |
MediaType.WML_UTF_8 |
static MediaType |
MediaType.WMV |
static MediaType |
MediaType.WOFF
Media type for the Web Open Font
Format (WOFF) defined by the W3C.
|
static MediaType |
MediaType.WOFF2
Media type for the 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
Media type for 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–2018. All rights reserved.