| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final byte[] | |
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | Returns: the payload size in bytesthe input string input)Computes the payload size of the percent-encoded string. |
| private static byte[] | Returns: the decoded byte arraythe input string input)Decodes percent-encoded text as specified by RFC 3986, section 2.1 This method does not make any assumptions about the allowed character set. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public byte[] | |
| public String | |
| public String | |
| public Map | |
| public int | |
| private static int | |
| public boolean | |
| public static boolean | |
| public String | |
| public static DataURI |
| base64 | back to summary |
|---|---|
| private final boolean base64 | |
| data | back to summary |
|---|---|
| private final byte[] data | |
| mimeSubtype | back to summary |
|---|---|
| private final String mimeSubtype | |
| mimeType | back to summary |
|---|---|
| private final String mimeType | |
| originalData | back to summary |
|---|---|
| private final String originalData | |
| originalUri | back to summary |
|---|---|
| private final String originalUri | |
| parameters | back to summary |
|---|---|
| private final Map<String, String> parameters | |
| DataURI | back to summary |
|---|---|
| private DataURI(String originalUri, String originalData, String mimeType, String mimeSubtype, Map<String, String> parameters, boolean base64, byte[] decodedData) | |
| computePayloadSize | back to summary |
|---|---|
| private static int computePayloadSize(String input) Computes the payload size of the percent-encoded string.
| |
| decodePercentEncoding | back to summary |
|---|---|
| private static byte[] decodePercentEncoding(String input) Decodes percent-encoded text as specified by RFC 3986, section 2.1 This method does not make any assumptions about the allowed character set.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getData | back to summary |
|---|---|
| public byte[] getData() Returns the data that is encoded in this URI. Note that repeated calls to this method will return the same array instance. | |
| getMimeSubtype | back to summary |
|---|---|
| public String getMimeSubtype() Returns the MIME subtype that was specified in the URI. If no MIME subtype was specified, returns "plain". | |
| getMimeType | back to summary |
|---|---|
| public String getMimeType() Returns the MIME type that was specified in the URI. If no MIME type was specified, returns "text". | |
| getParameters | back to summary |
|---|---|
| public Map Returns the key-value parameter pairs that were specified in the URI. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hexDigit | back to summary |
|---|---|
| private static int hexDigit(char c) | |
| isBase64 | back to summary |
|---|---|
| public boolean isBase64() Returns whether the data in the URI is Base64-encoded.
If | |
| matchScheme | back to summary |
|---|---|
| public static boolean matchScheme(String uri) Determines whether the specified URI uses the "data" scheme. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| tryParse | back to summary |
|---|---|
| public static DataURI tryParse(String uri) Parses the specified URI if it uses the "data" scheme.
| |