Class HttpHeaderSiteKeyExtractor.ResourceInfo
java.lang.Object
org.adblockplus.libadblockplus.android.webview.HttpHeaderSiteKeyExtractor.ResourceInfo
- Enclosing class:
- HttpHeaderSiteKeyExtractor
public static class HttpHeaderSiteKeyExtractor.ResourceInfo
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ResourceInfo() -
Method Summary
Modifier and Type Method Description java.lang.StringgetEncoding()java.lang.StringgetMimeType()booleanisBinary()Tells if header's mime type is binary This detection is far from being precise, it makes a guess based on first part of MIME (image, video, audio etc) It does not take into account all the variety of `application/..` typesstatic HttpHeaderSiteKeyExtractor.ResourceInfoparse(java.lang.String contentType)voidsetEncoding(java.lang.String encoding)voidsetMimeType(java.lang.String mimeType)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ResourceInfo
public ResourceInfo()
-
-
Method Details
-
getMimeType
public java.lang.String getMimeType() -
getEncoding
public java.lang.String getEncoding() -
setMimeType
public void setMimeType(java.lang.String mimeType) -
setEncoding
public void setEncoding(java.lang.String encoding) -
isBinary
public boolean isBinary()Tells if header's mime type is binary This detection is far from being precise, it makes a guess based on first part of MIME (image, video, audio etc) It does not take into account all the variety of `application/..` types -
parse
-