class_body
{ "{"
field_declaration (+31 nodes collapsed)
field_declaration
modifiers
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "defaultCharset"
= "="
string_literal
" "\""
string_fragment "UTF-8"
" "\""
; ";"
line_comment "// used if not found in header or meta charset"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "bufferSize"
= "="
hex_integer_literal "0x20000"
; ";"
line_comment "// ~130K."
constructor_declaration
modifiers
private "private"
identifier "DataUtil"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/**\n * Loads a file to a Document.\n * @param in file"...
method_declaration (+106 nodes collapsed)
block_comment "/**\n * Parses a Document from an input steam.\n * @pa"...
method_declaration (+59 nodes collapsed)
block_comment "/**\n * Parses a Document from an input steam, using the "...
method_declaration (+57 nodes collapsed)
line_comment "// reads bytes first into a buffer, then decodes with the ap"...
line_comment "// switching the chartset midstream when a meta http-equiv t"...
method_declaration
modifiers
static "static"
type_identifier "Document"
identifier "parseByteData"
formal_parameters
( "("
formal_parameter
type_identifier "ByteBuffer"
identifier "byteData"
, ","
formal_parameter
type_identifier "String"
identifier "charsetName"
, ","
formal_parameter
type_identifier "String"
identifier "baseUri"
, ","
formal_parameter
type_identifier "Parser"
identifier "parser"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "String"
variable_declarator
identifier "docData"
; ";"
local_variable_declaration
type_identifier "Document"
variable_declarator
identifier "doc"
= "="
null_literal "null"
; ";"
if_statement (+268 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "doc"
== "=="
null_literal "null"
) ")"
block
{ "{"
line_comment "// there are times where there is a spurious byte-order-mark"...
line_comment "// in utf-8. If after decoding, there is a BOM, strip it; ot"...
line_comment "// into head mode"
expression_statement
assignment_expression
identifier "doc"
= "="
method_invocation
identifier "parser"
. "."
identifier "parseInput"
argument_list
( "("
identifier "docData"
, ","
identifier "baseUri"
) ")"
; ";"
expression_statement
method_invocation
method_invocation
identifier "doc"
. "."
identifier "outputSettings"
argument_list
( "("
) ")"
. "."
identifier "charset"
argument_list
( "("
identifier "charsetName"
) ")"
; ";"
} "}"
return_statement
return "return"
identifier "doc"
; ";"
} "}"
method_declaration (+129 nodes collapsed)
block_comment "/**\n * Parse out a charset from a content type header.\n "...
method_declaration (+83 nodes collapsed)
} "}"