public class HtmlMetrics extends Object
Constructor and Description |
---|
HtmlMetrics() |
Modifier and Type | Method and Description |
---|---|
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)
Sets the empty chars.
|
void |
setFilesize(int filesize)
Sets the filesize.
|
void |
setInlineEventSize(int inlineEventSize)
Sets the inline event size.
|
void |
setInlineScriptSize(int inlineScriptSize)
Sets the inline script size.
|
void |
setInlineStyleSize(int inlineStyleSize)
Sets the inline style size.
|
String |
toString() |
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 setCopyright © 2009–2020 Jeremy Landis. All rights reserved.