public class OptimizeResults extends Object
Constructor and Description |
---|
OptimizeResults(List<OptimizeResult> results,
long originalBytes,
long newBytes)
Creates a new instance of OptimizeResults.
|
Modifier and Type | Method and Description |
---|---|
long |
getNewBytes()
Get the size of the document after optimizing.
|
long |
getOriginalBytes()
Get the size of the original document before optimizing.
|
List<OptimizeResult> |
getResults()
Get the list of results.
|
com.qoppa.nanoxml.XMLElement |
toXml()
Get the results in XML format.
|
void |
writeXml(OutputStream out)
Write the optimize results to an output stream as XML.
|
public OptimizeResults(List<OptimizeResult> results, long originalBytes, long newBytes)
results
- The list of results.originalBytes
- The size of the document in bytes.public List<OptimizeResult> getResults()
public long getOriginalBytes()
public long getNewBytes()
public void writeXml(OutputStream out) throws IOException
out
- the output stream the results will be written to as XML.IOException
public com.qoppa.nanoxml.XMLElement toXml()