class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_BUFFER_RESIZE_FACTOR"
= "="
decimal_integer_literal "2"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_BUFFER_SIZE"
= "="
decimal_integer_literal "8192"
; ";"
block_comment "/**\n * MIME chunk size per RFC 2045 section 6.8.\n *"...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MIME_CHUNK_SIZE"
= "="
decimal_integer_literal "76"
; ";"
block_comment "/**\n * PEM chunk size per RFC 1421 section 4.3.2.4.\n "...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "PEM_CHUNK_SIZE"
= "="
decimal_integer_literal "64"
; ";"
block_comment "/**\n * Chunk separator per RFC 2045 section 2.1.\n *\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 decodi"...
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 "buffer"
; ";"
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 * Creates a Base64 codec used for decoding (all mod"...
constructor_declaration
modifiers
public "public"
identifier "Base64"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
this "this"
argument_list
( "("
decimal_integer_literal "0"
) ")"
; ";"
} "}"
block_comment "/**\n * Creates a Base64 codec used for decoding (all mod"...
constructor_declaration (+24 nodes collapsed)
block_comment "/**\n * Creates a Base64 codec used for decoding (all mod"...
constructor_declaration (+23 nodes collapsed)
block_comment "/**\n * Creates a Base64 codec used for decoding (all mod"...
constructor_declaration (+34 nodes collapsed)
block_comment "/**\n * Creates a Base64 codec used for decoding (all mod"...
constructor_declaration (+241 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 "buffer"
!= "!="
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 (+118 nodes collapsed)
block_comment "/**\n * <p>\n * Encodes all of the provided data, star"...
method_declaration (+668 nodes collapsed)
block_comment "/**\n * <p>\n * Decodes all of the provided data, star"...
method_declaration (+497 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 String to see if it contains only v"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Tests a given byte array to see if it contains on"...
method_declaration (+29 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 an"...
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 the base64 algorithm bu"...
method_declaration (+38 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 a URL-safe variation of"...
method_declaration (+40 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 (+95 nodes collapsed)
block_comment "/**\n * Decodes a String containing characters in the Bas"...
method_declaration (+35 nodes collapsed)
block_comment "/**\n * Decodes a byte[] containing characters in the Bas"...
method_declaration (+124 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 (+51 nodes collapsed)
block_comment "/**\n * Encodes binary data using the base64 algorithm, o"...
method_declaration
modifiers
public "public"
static "static"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
identifier "encodeBase64"
formal_parameters (+24 nodes collapsed)
block
{ "{"
if_statement (+25 nodes collapsed)
local_variable_declaration
integral_type
long "long"
variable_declarator
identifier "len"
= "="
method_invocation
identifier "getEncodeLength"
argument_list
( "("
identifier "binaryData"
, ","
identifier "MIME_CHUNK_SIZE"
, ","
identifier "CHUNK_SEPARATOR"
) ")"
; ";"
if_statement (+37 nodes collapsed)
local_variable_declaration (+28 nodes collapsed)
return_statement
return "return"
method_invocation
identifier "b64"
. "."
identifier "encode"
argument_list
( "("
identifier "binaryData"
) ")"
; ";"
} "}"
block_comment "/**\n * Decodes a Base64 String into octets\n *\n *"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Decodes Base64 data into octets\n * \n * @p"...
method_declaration (+41 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)
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 S"...
method_declaration (+35 nodes collapsed)
block_comment "/**\n * Encodes a byte[] containing binary data, into a b"...
method_declaration (+127 nodes collapsed)
block_comment "/**\n * Pre-calculates the amount of space needed to base"...
method_declaration (+170 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)
block_comment "/**\n * Resets this Base64 object to its initial newly co"...
method_declaration (+47 nodes collapsed)
} "}"