public class HtmlCompressorStatistics extends Object
HtmlCompressor.getStatistics()
Constructor and Description |
---|
HtmlCompressorStatistics() |
Modifier and Type | Method and Description |
---|---|
HtmlMetrics |
getCompressedMetrics()
Returns metrics of a compressed document.
|
HtmlMetrics |
getOriginalMetrics()
Returns metrics of an uncompressed document.
|
int |
getPreservedSize()
Returns total size of blocks that were skipped by the compressor (for example content inside
<pre> tags or inside <script> tags with disabled javascript compression). |
long |
getTime()
Returns total compression time.
|
void |
setCompressedMetrics(HtmlMetrics compressedMetrics)
Sets the compressed metrics.
|
void |
setOriginalMetrics(HtmlMetrics originalMetrics)
Sets the original metrics.
|
void |
setPreservedSize(int preservedSize)
Sets the preserved size.
|
void |
setTime(long time)
Sets the time.
|
String |
toString() |
public HtmlMetrics getOriginalMetrics()
HtmlMetrics
public void setOriginalMetrics(HtmlMetrics originalMetrics)
originalMetrics
- the originalMetrics to setpublic HtmlMetrics getCompressedMetrics()
HtmlMetrics
public void setCompressedMetrics(HtmlMetrics compressedMetrics)
compressedMetrics
- the compressedMetrics to setpublic long getTime()
Please note that compression performance varies very significantly depending on whether it was a cold run or not (specifics of Java VM), so for accurate real world results it is recommended to take measurements accordingly.
public void setTime(long time)
time
- the time to setpublic int getPreservedSize()
<pre>
tags or inside <script>
tags with disabled javascript compression).public void setPreservedSize(int preservedSize)
preservedSize
- the preservedSize to setCopyright © 2009–2020 Jeremy Landis. All rights reserved.