|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.htmlcompressor.compressor.HtmlMetrics
public class HtmlMetrics
Class that stores metrics about HTML documents.
Constructor Summary | |
---|---|
HtmlMetrics()
|
Method Summary | |
---|---|
int |
getEmptyChars()
Returns number of empty characters (spaces, tabs, end of lines) in a document |
int |
getFilesize()
Returns total filesize of a document |
int |
getInlineEventSize()
Returns total size of inline event handlers ( onclick , etc) |
int |
getInlineScriptSize()
Returns total size of inline <script> tags |
int |
getInlineStyleSize()
Returns total size of inline <style> tags |
void |
setEmptyChars(int emptyChars)
|
void |
setFilesize(int filesize)
|
void |
setInlineEventSize(int inlineEventSize)
|
void |
setInlineScriptSize(int inlineScriptSize)
|
void |
setInlineStyleSize(int inlineStyleSize)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HtmlMetrics()
Method Detail |
---|
public int getFilesize()
public void setFilesize(int filesize)
filesize
- the filesize to setpublic int getEmptyChars()
public void setEmptyChars(int emptyChars)
emptyChars
- the emptyChars to setpublic int getInlineScriptSize()
<script>
tags
<script>
tags, in bytespublic void setInlineScriptSize(int inlineScriptSize)
inlineScriptSize
- the inlineScriptSize to setpublic int getInlineStyleSize()
<style>
tags
<style>
tags, in bytespublic void setInlineStyleSize(int inlineStyleSize)
inlineStyleSize
- the inlineStyleSize to setpublic int getInlineEventSize()
onclick
, etc)
public void setInlineEventSize(int inlineEventSize)
inlineEventSize
- the inlineEventSize to setpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |