public class DataURIGenerator extends Object
| Constructor and Description |
|---|
DataURIGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generate(File file,
Writer out)
Generates a data URI from a file, outputting it to the given writer.
|
static void |
generate(File file,
Writer out,
String mimeType)
Generates a data URI from a file, outputting it to the given writer.
|
static void |
generate(URL url,
Writer out)
Generates a data URI from a file, outputting it to the given writer.
|
static void |
generate(URL url,
Writer out,
String mimeType)
Generates a data URI from a URL, outputting it to the given writer.
|
static boolean |
getVerbose() |
static void |
setVerbose(boolean newVerbose) |
public static boolean getVerbose()
public static void setVerbose(boolean newVerbose)
public static void generate(File file, Writer out) throws IOException
file - The file from which to generate the data URI.out - Where to output the data URI.IOExceptionpublic static void generate(File file, Writer out, String mimeType) throws IOException
file - The file from which to generate the data URI.out - Where to output the data URI.mimeType - The MIME type to use for the data URI.IOExceptionpublic static void generate(URL url, Writer out) throws IOException
file - The file from which to generate the data URI.out - Where to output the data URI.IOExceptionpublic static void generate(URL url, Writer out, String mimeType) throws IOException
url - The URL form which to generate the data URI.out - Where to output the data URI.mimeType - The MIME type to use for the data URI.IOExceptionCopyright © 2013. All Rights Reserved.