|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.htmlcompressor.compressor.HtmlCompressorStatistics
public class HtmlCompressorStatistics
Class that stores HTML compression statistics
HtmlCompressor.getStatistics()
Constructor Summary | |
---|---|
HtmlCompressorStatistics()
|
Method Summary | |
---|---|
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)
|
void |
setOriginalMetrics(HtmlMetrics originalMetrics)
|
void |
setPreservedSize(int preservedSize)
|
void |
setTime(long time)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HtmlCompressorStatistics()
Method Detail |
---|
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 setpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |