org.apache.fop.util
Class DataURLUtil
java.lang.Object
org.apache.fop.util.DataURLUtil
public class DataURLUtil
extends java.lang.Object
Utility classes for generating RFC 2397 data URLs.
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.
|
createDataURL
public static String createDataURL(InputStream in,
String mediatype)
throws IOException
Creates a new data URL and returns it as a String.
in
- the InputStream to read the data frommediatype
- the MIME type of the content, or null
- the newly created data URL
writeDataURL
public static void writeDataURL(InputStream in,
String mediatype,
Writer writer)
throws IOException
Generates a data URL and writes it to a Writer.
in
- the InputStream to read the data frommediatype
- the MIME type of the content, or nullwriter
- the Writer to write to
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.