Serializablepublic final class DataUrl extends Object implements Serializable
| Constructor | Description |
|---|---|
DataUrl(byte[] data) |
Consturcts a new DataUrl with URL encoding and without
headers/parameters and MIME-Type
|
DataUrl(byte[] data,
DataUrlEncoding encoding) |
Consturcts a new DataUrl without headers/parameters and MIME-Type
|
DataUrl(byte[] data,
DataUrlEncoding encoding,
String mimeType) |
Consturcts a new DataUrl without headers/parameters
|
DataUrl(byte[] data,
DataUrlEncoding encoding,
String mimeType,
Map<String,String> headers) |
Consturcts a new DataUrl
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
byte[] |
getData() |
Gets the payload of this data url
|
DataUrlEncoding |
getEncoding() |
Gets the encoding method
|
Map<String,String> |
getHeaders() |
Gets the headers/parameters of this data url
|
String |
getMimeType() |
Gets the MIME-Type of this data urls content.
|
int |
hashCode() |
|
String |
toString() |
public DataUrl(byte[] data,
DataUrlEncoding encoding,
String mimeType,
Map<String,String> headers)
throws NullPointerException
data - Payload of this data url. Must not be nullencoding - Encoding method. Must not be nullmimeType - MIME-Type of this data urls contentheaders - Headers/parameters of this data urlNullPointerException - if data or encoding is nullpublic DataUrl(byte[] data,
DataUrlEncoding encoding,
String mimeType)
throws NullPointerException
data - Payload of this data url. Must not be nullencoding - Encoding method. Must not be nullmimeType - MIME-Type of this data urls contentNullPointerException - if data or encoding is nullpublic DataUrl(byte[] data,
DataUrlEncoding encoding)
throws NullPointerException
data - Payload of this data url. Must not be nullencoding - Encoding method. Must not be nullNullPointerException - if data or encoding is nullpublic DataUrl(byte[] data)
throws NullPointerException
data - Payload of this data url. Must not be nullNullPointerException - if data is nullpublic byte[] getData()
public String getMimeType()
null.public DataUrlEncoding getEncoding()
public Map<String,String> getHeaders()
nullCopyright © 2018. All rights reserved.