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.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.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.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.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.FORM_DATA |
static MediaType |
MediaType.GIF |
static MediaType |
MediaType.GZIP |
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 |
static MediaType |
MediaType.KMZ |
static MediaType |
MediaType.MBOX |
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.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.SHOCKWAVE_FLASH |
static MediaType |
MediaType.SKETCHUP |
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.TIFF |
static MediaType |
MediaType.TSV_UTF_8
|
static MediaType |
MediaType.VCARD_UTF_8 |
static MediaType |
MediaType.WEBM_AUDIO |
static MediaType |
MediaType.WEBM_VIDEO |
static MediaType |
MediaType.WEBP |
static MediaType |
MediaType.WML_UTF_8 |
static MediaType |
MediaType.WMV |
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.
|
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-2014. All Rights Reserved.