|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.htmlcompressor.compressor.YuiCssCompressor
public class YuiCssCompressor
Basic CSS compressor implementation using Yahoo YUI Compressor
that could be used by HtmlCompressor
for inline CSS compression.
HtmlCompressor.setCssCompressor(Compressor)
,
Yahoo YUI CompressorConstructor Summary | |
---|---|
YuiCssCompressor()
|
Method Summary | |
---|---|
String |
compress(String source)
The main method that compresses the given source and returns a compressed result. |
int |
getLineBreak()
Returns number of symbols per line Yahoo YUI Compressor will use during CSS compression. |
void |
setLineBreak(int lineBreak)
Tells Yahoo YUI Compressor to break lines after the specified number of symbols during CSS compression. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YuiCssCompressor()
Method Detail |
---|
public String compress(String source)
Compressor
compress
in interface Compressor
source
- The source to compress.
public int getLineBreak()
--line-break
command line option.
line-break
parameter value used for CSS compression.public void setLineBreak(int lineBreak)
--line-break
command line option.
This option has effect only if CSS compression is enabled.
Default is -1
to disable line breaks.
lineBreak
- set number of symbols per line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |