public class SizeMapRecorder extends Object
SizeBreakdown
to a gzipped XML file. That file is
then read to produce a Story of Your Compile.Constructor and Description |
---|
SizeMapRecorder() |
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
charToHex(char c)
Returns the hexadecimal representation of a character.
|
static String |
escapeXml(String unescaped)
Escapes '&', '<', '>', '"', and '\'' to their XML entity equivalents.
|
static void |
escapeXml(String code,
int start,
int end,
boolean quoteApostrophe,
StringBuilder builder)
Escapes '&', '<', '>', '"', and optionally ''' to their XML entity
equivalents.
|
static void |
recordMap(TreeLogger logger,
OutputStream out,
SizeBreakdown[] sizeBreakdowns,
JavaToJavaScriptMap jjsmap,
Map<JsName,String> obfuscateMap) |
public static StringBuilder charToHex(char c)
public static String escapeXml(String unescaped)
public static void escapeXml(String code, int start, int end, boolean quoteApostrophe, StringBuilder builder)
code
- the input Stringstart
- the first character position to scan.end
- the character position following the last character to scan.quoteApostrophe
- if true, the ' character is quoted as
'builder
- a StringBuilder to be appended with the output.public static void recordMap(TreeLogger logger, OutputStream out, SizeBreakdown[] sizeBreakdowns, JavaToJavaScriptMap jjsmap, Map<JsName,String> obfuscateMap) throws IOException
logger
- a TreeLoggerIOException
Copyright © 2018. All rights reserved.