class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "COPY_BUF_SIZE"
= "="
decimal_integer_literal "8024"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "SKIP_BUF_SIZE"
= "="
decimal_integer_literal "4096"
; ";"
block_comment "/** Private constructor to prevent instantiation of this uti"...
constructor_declaration
modifiers
private "private"
identifier "IOUtils"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/**\n * Copies the content of a InputStream into an Outpu"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Copies the content of a InputStream into an Outpu"...
method_declaration (+120 nodes collapsed)
block_comment "/**\n * Skips the given number of bytes by repeatedly inv"...
method_declaration
modifiers
public "public"
static "static"
integral_type
long "long"
identifier "skip"
formal_parameters
( "("
formal_parameter
type_identifier "InputStream"
identifier "input"
, ","
formal_parameter
integral_type
long "long"
identifier "numToSkip"
) ")"
throws
throws "throws"
type_identifier "IOException"
block
{ "{"
local_variable_declaration
integral_type
long "long"
variable_declarator
identifier "available"
= "="
identifier "numToSkip"
; ";"
while_statement (+48 nodes collapsed)
return_statement
return "return"
binary_expression
identifier "available"
- "-"
identifier "numToSkip"
; ";"
} "}"
block_comment "/**\n * Reads as much from input as possible to fill the "...
method_declaration (+46 nodes collapsed)
block_comment "/**\n * Reads as much from input as possible to fill the "...
method_declaration (+152 nodes collapsed)
line_comment "// toByteArray(InputStream) copied from:"
line_comment "// commons/proper/io/trunk/src/main/java/org/apache/commons/"...
line_comment "// January 8th, 2013"
line_comment "//"
line_comment "// Assuming our copy() works just as well as theirs! :-)"
block_comment "/**\n * Gets the contents of an <code>InputStream</code> "...
method_declaration (+59 nodes collapsed)
block_comment "/**\n * Closes the given Closeable and swallows any IOExc"...
method_declaration (+53 nodes collapsed)
} "}"