public class CSSURLEmbedder extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DATAURI_OPTION |
static int |
DEFAULT_MAX_URI_LENGTH |
static int |
MHTML_OPTION |
protected static String |
MHTML_SEPARATOR |
static String |
PROC_DIRECTIVE_PREFIX |
static String |
PROC_DIRECTIVE_SKIP |
static int |
SKIP_MISSING_OPTION |
| Constructor and Description |
|---|
CSSURLEmbedder(Reader in) |
CSSURLEmbedder(Reader in,
boolean verbose) |
CSSURLEmbedder(Reader in,
int options) |
CSSURLEmbedder(Reader in,
int options,
boolean verbose) |
CSSURLEmbedder(Reader in,
int options,
boolean verbose,
int maxUriLength) |
CSSURLEmbedder(Reader in,
int options,
boolean verbose,
int maxUriLength,
int maxImageSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
embedImages(Writer out)
Embeds data URI images into a CSS file.
|
void |
embedImages(Writer out,
String root)
Embeds data URI images into a CSS file.
|
String |
getFilename() |
String |
getMHTMLRoot() |
boolean |
getVerbose() |
void |
setFilename(String filename) |
void |
setMHTMLRoot(String mhtmlRoot) |
void |
setVerbose(boolean newVerbose) |
public static final int DATAURI_OPTION
public static final int MHTML_OPTION
public static final int SKIP_MISSING_OPTION
public static final int DEFAULT_MAX_URI_LENGTH
public static final String PROC_DIRECTIVE_PREFIX
public static final String PROC_DIRECTIVE_SKIP
protected static String MHTML_SEPARATOR
public CSSURLEmbedder(Reader in) throws IOException
IOExceptionpublic CSSURLEmbedder(Reader in, int options) throws IOException
IOExceptionpublic CSSURLEmbedder(Reader in, boolean verbose) throws IOException
IOExceptionpublic CSSURLEmbedder(Reader in, int options, boolean verbose) throws IOException
IOExceptionpublic CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLength) throws IOException
IOExceptionpublic CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLength, int maxImageSize) throws IOException
IOExceptionpublic boolean getVerbose()
public void setVerbose(boolean newVerbose)
public String getMHTMLRoot()
public void setMHTMLRoot(String mhtmlRoot)
public String getFilename()
public void setFilename(String filename)
public void embedImages(Writer out) throws IOException
out - The place to write out the source code.IOExceptionpublic void embedImages(Writer out, String root) throws IOException
out - The place to write out the source code.root - The root to prepend to any relative paths.IOExceptionCopyright © 2013. All Rights Reserved.