public interface DocMaker
Modifier and Type | Method and Description |
---|---|
long |
getByteCount()
Return total byte size of docs made since last reset.
|
int |
getCount()
Return number of docs made since last reset.
|
HTMLParser |
getHtmlParser()
Returns the htmlParser.
|
Document |
makeDocument()
Create the next document.
|
Document |
makeDocument(int size)
Create the next document, of the given size by input bytes.
|
long |
numUniqueBytes()
Return total bytes of all available unique texts, 0 if not applicable
|
int |
numUniqueTexts()
Return how many real unique texts are available, 0 if not applicable.
|
void |
printDocStatistics()
Print some statistics on docs available/added/etc.
|
void |
resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.
|
void |
setConfig(Config config)
Set the properties
|
void |
setHTMLParser(HTMLParser htmlParser)
Set the html parser to use, when appropriate
|
Document makeDocument(int size) throws Exception
size
- size of document, or 0 if there is no size requirement.if
- cannot make the document, or if size>0 was specified but this feature is not supported.Exception
void setConfig(Config config)
void resetInputs()
int numUniqueTexts()
long numUniqueBytes()
int getCount()
long getByteCount()
void printDocStatistics()
void setHTMLParser(HTMLParser htmlParser)
HTMLParser getHtmlParser()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.