|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
setRemoveSurroundingSpaces
method
to remove all surrounding spaces (not recommended).
<div>
and <li>
tags.
HtmlCompressor
for inline JavaScript compression.ErrorReporter
used by YUI Compressor to log error messages
during JavasSript compression
JSSourceFile
used as a reference during the compression
at CompilationLevel.ADVANCED_OPTIMIZATIONS
level.
onclick
, etc)
<script>
tags
<style>
tags
<pre>
tags or inside
<script>
tags with disabled javascript compression)
HtmlCompressorStatistics
object containing statistics of the last HTML compression, if enabled.
WarningLevel
used by the Closure compiler
ErrorReporter
used by YUI Compressor to log error messages
during JavasSript compression
true
if CSS compression is enabled.
true
if JavaScript compression is enabled.
true
if default externs defined inside Closure's jar are ignored
and only user defined ones are used.
true
if Yahoo YUI Compressor
will disable all the built-in micro optimizations during JavaScript compression.
true
if compression is enabled.
true
if compression is enabled.
true
if HTML compression statistics is generated
true
if Yahoo YUI Compressor
will only minify javascript without obfuscating local symbols.
true
if Yahoo YUI Compressor
will preserve unnecessary semicolons during JavaScript compression.
true
if line breaks will be preserved.
true
if all HTML comments will be removed.
true
if all XML comments will be removed.
true
if method="get"
attributes will be removed from <form>
tags
true
if HTTP
protocol will be removed from href
, src
, cite
, and action
tag attributes.
true
if HTTPS
protocol will be removed from href
, src
, cite
, and action
tag attributes.
true
if type="text"
attributes will be removed from <input>
tags
true
if all inter-tag whitespace characters will be removed.
true
if all inter-tag whitespace characters will be removed.
true
if javascript:
pseudo-protocol will be removed from inline event handlers.
true
if unnecessary attributes will be removed from <link>
tags
true
if all multiple whitespace characters will be replaced with single spaces.
true
if all unnecessary quotes will be removed
from tag attributes.
true
if unnecessary attributes wil be removed from <script>
tags
true
if type="text/style"
attributes will be removed from <style>
tags
true
if boolean attributes will be simplified
true
if existing DOCTYPE declaration will be replaced with simple
declaration.
true
if Yahoo YUI Compressor
will disable all the built-in micro optimizations during JavaScript compression.
true
if Yahoo YUI Compressor
will only minify javascript without obfuscating local symbols.
true
if Yahoo YUI Compressor
will preserve unnecessary semicolons during JavaScript compression.
<?php ...
- process(String[]) -
Method in class com.googlecode.htmlcompressor.CmdLineCompressor
-
<% ...
- SERVER_SIDE_INCLUDE_PATTERN -
Static variable in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Predefined pattern that matches
<--# ...
- setClosureOptLevel(String) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
- Sets level of optimization if Google Closure Compiler is used
for compressing inline JavaScript.
- setClosureOptLevel(String) -
Method in class com.googlecode.htmlcompressor.taglib.JavaScriptCompressorTag
- Sets level of optimization if Google Closure Compiler is used
for compressing inline JavaScript.
- setCompilationLevel(CompilationLevel) -
Method in class com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor
- Sets level of optimization that should be applied when compiling JavaScript code.
- setCompilerOptions(CompilerOptions) -
Method in class com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor
- Sets options that will be used by the Closure compiler.
- setCompressCss(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Enables CSS compression within <style> tags using
Yahoo YUI Compressor
if set to
true
.
- setCompressCss(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setCompressedMetrics(HtmlMetrics) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressorStatistics
-
- setCompressJavaScript(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Enables JavaScript compression within <script> tags using
Yahoo YUI Compressor
if set to
true
.
- setCompressJavaScript(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setCssCompressor(Compressor) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Sets CSS compressor implementation that will be used
to compress inline CSS in HTML.
- setCustomExternsOnly(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor
- If set to
true
, default externs defined inside Closure's jar will be ignored
and only user defined ones will be used.
- setDisableOptimizations(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.YuiJavaScriptCompressor
- Tells Yahoo YUI Compressor to disable all the built-in micro optimizations
during JavaScript compression.
- setEmptyChars(int) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlMetrics
-
- setEnabled(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
false
all compression will be bypassed.
- setEnabled(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.XmlCompressor
- If set to
false
all compression will be bypassed.
- setEnabled(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.CssCompressorTag
-
- setEnabled(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setEnabled(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.JavaScriptCompressorTag
-
- setEnabled(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.XmlCompressorTag
-
- setErrorReporter(ErrorReporter) -
Method in class com.googlecode.htmlcompressor.compressor.YuiJavaScriptCompressor
- Sets
ErrorReporter
that YUI Compressor will use for reporting errors during
JavaScript compression.
- setExterns(List<JSSourceFile>) -
Method in class com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor
- Sets external JavaScript files that are used as a reference for function declarations if
CompilationLevel.ADVANCED_OPTIMIZATIONS
compression level is used.
- setFilesize(int) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlMetrics
-
- setGenerateStatistics(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, HTML compression statistics will be generated.
- setInlineEventSize(int) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlMetrics
-
- setInlineScriptSize(int) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlMetrics
-
- setInlineStyleSize(int) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlMetrics
-
- setJavaScriptCompressor(Compressor) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Sets JavaScript compressor implementation that will be used
to compress inline JavaScript in HTML.
- setJsCompressor(String) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
- Sets JavaScript compressor implementation that will be used
to compress inline JavaScript in HTML.
- setJsCompressor(String) -
Method in class com.googlecode.htmlcompressor.taglib.JavaScriptCompressorTag
- Sets JavaScript compressor implementation that will be used
to compress inline JavaScript in HTML.
- setLineBreak(int) -
Method in class com.googlecode.htmlcompressor.compressor.YuiCssCompressor
- Tells Yahoo YUI Compressor to break lines after the specified number of symbols
during CSS compression.
- setLineBreak(int) -
Method in class com.googlecode.htmlcompressor.compressor.YuiJavaScriptCompressor
- Tells Yahoo YUI Compressor to break lines after the specified number of symbols
during JavaScript compression.
- setLoggingLevel(Level) -
Method in class com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor
- Sets logging level for the Closure compiler.
- setNoMunge(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.YuiJavaScriptCompressor
- Tells Yahoo YUI Compressor to only minify javascript without obfuscating
local symbols.
- setOriginalMetrics(HtmlMetrics) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressorStatistics
-
- setPreserveAllSemiColons(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.YuiJavaScriptCompressor
- Tells Yahoo YUI Compressor to preserve unnecessary semicolons
during JavaScript compression.
- setPreservedSize(int) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressorStatistics
-
- setPreserveLineBreaks(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, line breaks will be preserved.
- setPreserveLineBreaks(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setPreservePatterns(List<Pattern>) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- This method allows setting custom block preservation rules defined by regular
expression patterns.
- setRemoveComments(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
all HTML comments will be removed.
- setRemoveComments(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.XmlCompressor
- If set to
true
all XML comments will be removed.
- setRemoveComments(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveComments(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.XmlCompressorTag
-
- setRemoveFormAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, method="get"
attributes will be removed from <form>
tags.
- setRemoveFormAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveHttpProtocol(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, HTTP
protocol will be removed from href
, src
, cite
, and action
tag attributes.
- setRemoveHttpProtocol(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveHttpsProtocol(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, HTTPS
protocol will be removed from href
, src
, cite
, and action
tag attributes.
- setRemoveHttpsProtocol(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveInputAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, type="text"
attributes will be removed from <input>
tags.
- setRemoveInputAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveIntertagSpaces(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
all inter-tag whitespace characters will be removed.
- setRemoveIntertagSpaces(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.XmlCompressor
- If set to
true
all inter-tag whitespace characters will be removed.
- setRemoveIntertagSpaces(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveIntertagSpaces(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.XmlCompressorTag
-
- setRemoveJavaScriptProtocol(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, javascript:
pseudo-protocol will be removed from inline event handlers.
- setRemoveJavaScriptProtocol(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveLinkAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, following attributes will be removed from <link rel="stylesheet">
and <link rel="alternate stylesheet">
tags:
type="text/css"
type="text/plain"
- setRemoveLinkAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveMultiSpaces(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
all multiple whitespace characters will be replaced with single spaces.
- setRemoveMultiSpaces(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveQuotes(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
all unnecessary quotes will be removed
from tag attributes.
- setRemoveQuotes(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveScriptAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, following attributes will be removed from <script>
tags:
type="text/javascript"
type="application/javascript"
language="javascript"
- setRemoveScriptAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveStyleAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, type="text/style"
attributes will be removed from <style>
tags.
- setRemoveStyleAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setRemoveSurroundingSpaces(String) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Enables surrounding spaces removal around provided comma separated list of tags.
- setSimpleBooleanAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, any values of following boolean attributes will be removed:
checked
selected
disabled
readonly
- setSimpleBooleanAttributes(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setSimpleDoctype(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- If set to
true
, existing DOCTYPE declaration will be replaced with simple <!DOCTYPE html>
declaration.
- setSimpleDoctype(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setTime(long) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressorStatistics
-
- setWarningLevel(WarningLevel) -
Method in class com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor
- Indicates the amount of information you want from the compiler about possible problems in your code.
- setYuiCssLineBreak(int) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Tells Yahoo YUI Compressor to break lines after the specified number of symbols
during CSS compression.
- setYuiCssLineBreak(int) -
Method in class com.googlecode.htmlcompressor.taglib.CssCompressorTag
-
- setYuiCssLineBreak(int) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setYuiErrorReporter(ErrorReporter) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Sets
ErrorReporter
that YUI Compressor will use for reporting errors during
JavaScript compression.
- setYuiJsDisableOptimizations(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Tells Yahoo YUI Compressor to disable all the built-in micro optimizations
during JavaScript compression.
- setYuiJsDisableOptimizations(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setYuiJsDisableOptimizations(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.JavaScriptCompressorTag
-
- setYuiJsLineBreak(int) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Tells Yahoo YUI Compressor to break lines after the specified number of symbols
during JavaScript compression.
- setYuiJsLineBreak(int) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setYuiJsLineBreak(int) -
Method in class com.googlecode.htmlcompressor.taglib.JavaScriptCompressorTag
-
- setYuiJsNoMunge(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Tells Yahoo YUI Compressor to only minify javascript without obfuscating
local symbols.
- setYuiJsNoMunge(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setYuiJsNoMunge(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.JavaScriptCompressorTag
-
- setYuiJsPreserveAllSemiColons(boolean) -
Method in class com.googlecode.htmlcompressor.compressor.HtmlCompressor
- Tells Yahoo YUI Compressor to preserve unnecessary semicolons
during JavaScript compression.
- setYuiJsPreserveAllSemiColons(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.HtmlCompressorTag
-
- setYuiJsPreserveAllSemiColons(boolean) -
Method in class com.googlecode.htmlcompressor.taglib.JavaScriptCompressorTag
-
HtmlCompressor
for inline CSS compression.HtmlCompressor
for inline JavaScript compression.ErrorReporter
implementation that uses System.err
stream for error reporting.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |