|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.isdc.wro.model.resource.processor.support.DataUriGenerator
public class DataUriGenerator
Generator for Data URIs. Inspired from: http://github.com/nzakas/cssembed.
| Constructor Summary | |
|---|---|
DataUriGenerator()
Default constructor. |
|
| Method Summary | |
|---|---|
String |
generateDataURI(InputStream inputStream,
String fileName)
Generate the dataUri as string associated to the passed InputStream with encoding & type based on provided fileName. |
static boolean |
isDataUri(String url)
Check if the url is actually a dataUri (base64 encoded value). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataUriGenerator()
| Method Detail |
|---|
public String generateDataURI(InputStream inputStream,
String fileName)
throws IOException
IOExceptionpublic static boolean isDataUri(String url)
url - to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||