public class DataURI extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE64 |
static String |
DATA |
| Constructor and Description |
|---|
DataURI(InputStream inputStream) |
DataURI(String dataUri) |
DataURI(URI dataUri) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
InputStream |
getAsInputStream() |
URI |
getAsURI() |
String |
getMimeType()
a mime type e.g. image/png
|
int |
hashCode() |
String |
toString() |
public static final String DATA
public static final String BASE64
public DataURI(String dataUri)
dataUri - A String presenting a URI of the form data:[SCIMDataValidationException - if the dataUri violates RFC 2396, as augmented by the above deviationspublic DataURI(URI dataUri)
dataUri - A URI of the form data:[SCIMDataValidationException - if the URI doesn't expects the schemapublic DataURI(InputStream inputStream) throws IOException
inputStream - a inputStream which will be transformed into an DataURIIOException - if the stream can not be read or is closedSCIMDataValidationException - if the inputStream can't be converted into an DataURIpublic URI getAsURI()
public InputStream getAsInputStream()
public String getMimeType()
Copyright © 2014. All Rights Reserved.