public class DataUriSchemeParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CHARSET |
static java.lang.String |
DEFAULT_MIME_TYPE |
static java.lang.String |
PROTOCOL_PREFIX |
Constructor and Description |
---|
DataUriSchemeParser(java.lang.String url) |
Modifier and Type | Method and Description |
---|---|
DataUriSchemeParser |
allowMissingComma(boolean allowMissingComma) |
DataUriSchemeParser |
allowSlashesAfterColon(boolean allowSlashesAfterColon) |
java.lang.String |
getCharset() |
byte[] |
getData() |
java.io.ByteArrayInputStream |
getDataAsInputStream() |
java.lang.String |
getDataAsString() |
java.lang.String |
getMimeType() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
DataUriSchemeParser |
lax() |
DataUriSchemeParser |
parse() |
DataUriSchemeParser |
parseChecked() |
static byte[] |
toBytes(java.lang.String url) |
static java.lang.String |
toString(java.lang.String url) |
public static final java.lang.String PROTOCOL_PREFIX
public static final java.lang.String DEFAULT_MIME_TYPE
public static final java.lang.String DEFAULT_CHARSET
public static java.lang.String toString(java.lang.String url)
public static byte[] toBytes(java.lang.String url)
public java.lang.String getCharset()
public java.lang.String getMimeType()
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public byte[] getData()
public java.io.ByteArrayInputStream getDataAsInputStream()
public java.lang.String getDataAsString()
public DataUriSchemeParser lax()
public DataUriSchemeParser allowMissingComma(boolean allowMissingComma)
public DataUriSchemeParser allowSlashesAfterColon(boolean allowSlashesAfterColon)
public DataUriSchemeParser parse()
public DataUriSchemeParser parseChecked() throws java.io.UnsupportedEncodingException, java.net.MalformedURLException
java.io.UnsupportedEncodingException
java.net.MalformedURLException