|
xmlgraphics-commons 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlgraphics.util.uri.DataURLUtil
public final class DataURLUtil
Utility classes for generating RFC 2397 data URLs.
| Method Summary | |
|---|---|
static String |
createDataURL(InputStream in,
String mediatype)
Creates a new data URL and returns it as a String. |
static void |
writeDataURL(InputStream in,
String mediatype,
Writer writer)
Generates a data URL and writes it to a Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String createDataURL(InputStream in,
String mediatype)
throws IOException
in - the InputStream to read the data frommediatype - the MIME type of the content, or null
IOException - if an I/O error occurs
public static void writeDataURL(InputStream in,
String mediatype,
Writer writer)
throws IOException
in - the InputStream to read the data frommediatype - the MIME type of the content, or nullwriter - the Writer to write to
IOException - if an I/O error occurs
|
xmlgraphics-commons 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||