class_body
{ "{"
block_comment "/**\n * Chunk size per RFC 2045 section 6.8.\n * \n "...
field_declaration
modifiers
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "CHUNK_SIZE"
= "="
decimal_integer_literal "76"
; ";"
block_comment "/**\n * Chunk separator per RFC 2045 section 2.1.\n * "...
field_declaration
modifiers
static "static"
final "final"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
variable_declarator
identifier "CHUNK_SEPARATOR"
= "="
array_initializer
{ "{"
character_literal "'\\r'"
, ","
character_literal "'\\n'"
} "}"
; ";"
block_comment "/**\n * This array is a lookup table that translates 6-bi"...
field_declaration (+145 nodes collapsed)
block_comment "/**\n * This is a copy of the STANDARD_ENCODE_TABLE above"...
field_declaration (+145 nodes collapsed)
block_comment "/**\n * Byte used to pad output.\n */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
byte "byte"
variable_declarator
identifier "PAD"
= "="
character_literal "'='"
; ";"
block_comment "/**\n * This array is a lookup table that translates Unic"...
field_declaration (+377 nodes collapsed)
block_comment "/** Mask used to extract 6 bits, used when encoding */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MASK_6BITS"
= "="
hex_integer_literal "0x3f"
; ";"
block_comment "/** Mask used to extract 8 bits, used in decoding base64 byt"...
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MASK_8BITS"
= "="
hex_integer_literal "0xff"
; ";"
line_comment "// The static final fields above are used for the original s"...
line_comment "// The private member fields below are used with the new str"...
line_comment "// some state be preserved between calls of encode() and dec"...
block_comment "/**\n * Encode table to use: either STANDARD or URL_SAFE"...
field_declaration
modifiers
private "private"
final "final"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
variable_declarator
identifier "encodeTable"
; ";"
block_comment "/**\n * Line length for encoding. Not used when decoding"...
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "lineLength"
; ";"
block_comment "/**\n * Line separator for encoding. Not used when decod"...
field_declaration
modifiers
private "private"
final "final"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
variable_declarator
identifier "lineSeparator"
; ";"
block_comment "/**\n * Convenience variable to help us determine when ou"...
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "decodeSize"
; ";"
block_comment "/**\n * Convenience variable to help us determine when ou"...
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "encodeSize"
; ";"
block_comment "/**\n * Buffer for streaming. \n */"
field_declaration
modifiers
private "private"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
variable_declarator
identifier "buf"
; ";"
block_comment "/**\n * Position where next character should be written i"...
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "pos"
; ";"
block_comment "/**\n * Position where next character should be read from"...
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "readPos"
; ";"
block_comment "/**\n * Variable tracks how many characters have been wri"...
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "currentLinePos"
; ";"
block_comment "/**\n * Writes to the buffer only occur after every 3 rea"...
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "modulus"
; ";"
block_comment "/**\n * Boolean flag to indicate the EOF has been reached"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "eof"
; ";"
block_comment "/**\n * Place holder for the 3 bytes we're dealing with f"...
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "x"
; ";"
block_comment "/**\n * Sets state for decoding and encoding.\n * <p>\n"...
constructor_declaration
modifiers
public "public"
identifier "Base64"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
this "this"
argument_list
( "("
false "false"
) ")"
; ";"
} "}"
block_comment "/**\n * Same as default constructor (line length is 76, l"...
constructor_declaration (+24 nodes collapsed)
block_comment "/**\n * <p>\n * Sets the line length when encoding (li"...
constructor_declaration (+23 nodes collapsed)
block_comment "/**\n * <p>\n * Sets the line length and line separato"...
constructor_declaration (+34 nodes collapsed)
block_comment "/**\n * <p>\n * Consumer can use this constructor to c"...
constructor_declaration (+234 nodes collapsed)
block_comment "/**\n * Returns our current encode mode. True if we're UR"...
method_declaration (+21 nodes collapsed)
block_comment "/**\n * Returns true if this Base64 object has buffered d"...
method_declaration
boolean_type "boolean"
identifier "hasData"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
field_access
this "this"
. "."
identifier "buf"
!= "!="
null_literal "null"
; ";"
} "}"
block_comment "/**\n * Returns the amount of buffered data available for"...
method_declaration (+25 nodes collapsed)
block_comment "/** Doubles our buffer. */"
method_declaration (+104 nodes collapsed)
block_comment "/**\n * Extracts buffered data into the provided byte[] a"...
method_declaration (+142 nodes collapsed)
block_comment "/**\n * Sets the streaming buffer. This is a small optimi"...
method_declaration (+68 nodes collapsed)
block_comment "/**\n * <p>\n * Encodes all of the provided data, star"...
method_declaration
void_type "void"
identifier "encode"
formal_parameters (+21 nodes collapsed)
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
identifier "eof"
) ")"
block
{ "{"
return_statement
return "return"
; ";"
} "}"
line_comment "// inAvail < 0 is how we're informed of EOF in the underlyin"...
line_comment "// encoding."
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "inAvail"
< "<"
decimal_integer_literal "0"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "eof"
= "="
true "true"
; ";"
if_statement (+31 nodes collapsed)
switch_expression (+212 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "lineLength"
> ">"
decimal_integer_literal "0"
) ")"
block (+33 nodes collapsed)
} "}"
else "else"
block (+284 nodes collapsed)
} "}"
block_comment "/**\n * <p>\n * Decodes all of the provided data, star"...
method_declaration (+466 nodes collapsed)
block_comment "/**\n * Returns whether or not the <code>octet</code> is "...
method_declaration (+53 nodes collapsed)
block_comment "/**\n * Tests a given byte array to see if it contains on"...
method_declaration (+88 nodes collapsed)
block_comment "/**\n * Tests a given byte array to see if it contains on"...
method_declaration (+72 nodes collapsed)
block_comment "/**\n * Encodes binary data using the base64 algorithm bu"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes binary data using a url-safe variation of"...
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Encodes binary data using the base64 algorithm an"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Decodes an Object using the base64 algorithm. Thi"...
method_declaration (+70 nodes collapsed)
block_comment "/**\n * Decodes a byte[] containing containing characters"...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Encodes binary data using the base64 algorithm, o"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Encodes binary data using the base64 algorithm, o"...
method_declaration (+389 nodes collapsed)
block_comment "/**\n * Decodes Base64 data into octets\n *\n * @pa"...
method_declaration (+202 nodes collapsed)
block_comment "/**\n * Discards any whitespace from a base-64 encoded bl"...
method_declaration (+175 nodes collapsed)
block_comment "/**\n * Checks if a byte value is whitespace or not.\n "...
method_declaration (+57 nodes collapsed)
block_comment "/**\n * Discards any characters outside of the base64 alp"...
method_declaration (+153 nodes collapsed)
line_comment "// Implementation of the Encoder Interface"
block_comment "/**\n * Encodes an Object using the base64 algorithm. Thi"...
method_declaration (+70 nodes collapsed)
block_comment "/**\n * Encodes a byte[] containing binary data, into a b"...
method_declaration (+41 nodes collapsed)
line_comment "// Implementation of integer encoding used for crypto"
block_comment "/**\n * Decodes a byte64-encoded integer according to cry"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Encodes to a byte64-encoded integer according to "...
method_declaration (+61 nodes collapsed)
block_comment "/**\n * Returns a byte-array representation of a <code>Bi"...
method_declaration (+252 nodes collapsed)
} "}"