class_body
{ "{"
block_comment "/** Fail if a long file name is required in the archive. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "LONGFILE_ERROR"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** Long paths will be truncated in the archive. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "LONGFILE_TRUNCATE"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/** GNU tar extensions are used to store long file names in "...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "LONGFILE_GNU"
= "="
decimal_integer_literal "2"
; ";"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "currSize"
; ";"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "currName"
; ";"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "currBytes"
; ";"
field_declaration
modifiers
private "private"
final "final"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
variable_declarator
identifier "recordBuf"
; ";"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "assemLen"
; ";"
field_declaration
modifiers
private "private"
final "final"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
variable_declarator
identifier "assemBuf"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "TarBuffer"
variable_declarator
identifier "buffer"
; ";"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "longFileMode"
= "="
identifier "LONGFILE_ERROR"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "closed"
= "="
false "false"
; ";"
block_comment "/* Indicates if putArchiveEntry has been called without clos"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "haveUnclosedEntry"
= "="
false "false"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "OutputStream"
variable_declarator
identifier "out"
; ";"
block_comment "/**\n * Constructor for TarInputStream.\n * @param os "...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n * Constructor for TarInputStream.\n * @param os "...
constructor_declaration (+32 nodes collapsed)
block_comment "/**\n * Constructor for TarInputStream.\n * @param os "...
constructor_declaration (+89 nodes collapsed)
block_comment "/**\n * Set the long file mode.\n * This can be LONGFI"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Ends the TAR archive without closing the underlyi"...
method_declaration (+50 nodes collapsed)
block_comment "/**\n * Closes the underlying OutputStream.\n * @throw"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "close"
formal_parameters
( "("
) ")"
throws
throws "throws"
type_identifier "IOException"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
identifier "closed"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "finish"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "buffer"
. "."
identifier "close"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "out"
. "."
identifier "close"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
identifier "closed"
= "="
true "true"
; ";"
} "}"
} "}"
block_comment "/**\n * Get the record size being used by this stream's T"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Put an entry on the output stream. This writes th"...
method_declaration (+300 nodes collapsed)
block_comment "/**\n * Close an entry. This method MUST be called for al"...
method_declaration (+142 nodes collapsed)
block_comment "/**\n * Writes bytes to the current tar archive entry. Th"...
method_declaration (+357 nodes collapsed)
block_comment "/**\n * Write an EOF (end of archive) record to the tar a"...
method_declaration (+60 nodes collapsed)
line_comment "// used to be implemented via FilterOutputStream"
method_declaration (+23 nodes collapsed)
method_declaration (+33 nodes collapsed)
} "}"