Package com.iizix.js.build.compressors
Class HtmlCompressorStatistics
java.lang.Object
com.iizix.js.build.compressors.HtmlCompressorStatistics
Class that stores HTML compression statistics
- Author:
- Sergiy Kovalchuk
- See Also:
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescriptionReturns metrics of a compressed documentReturns metrics of an uncompressed document- intReturns 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) - toString()
- Constructor Details- HtmlCompressorStatisticspublic HtmlCompressorStatistics()
 
- Method Details- getOriginalMetricsReturns metrics of an uncompressed document- Returns:
- metrics of an uncompressed document
- See Also:
 
- setOriginalMetrics- Parameters:
- originalMetrics- the originalMetrics to set
 
- getCompressedMetricsReturns metrics of a compressed document- Returns:
- metrics of a compressed document
- See Also:
 
- setCompressedMetrics- Parameters:
- compressedMetrics- the compressedMetrics to set
 
- getTimepublic long getTime()Returns total compression time.- 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. - Returns:
- the compression time, in milliseconds
 
- setTimepublic void setTime- (long time) - Parameters:
- time- the time to set
 
- getPreservedSizepublic 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)- Returns:
- the total size of blocks that were skipped by the compressor, in bytes
 
- setPreservedSizepublic void setPreservedSize- (int preservedSize) - Parameters:
- preservedSize- the preservedSize to set
 
- toString