Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–852 unchanged (852 lines)
853 }
854
855 if (linkFlag == LF_DIR) {
856 return true;
857 }
858
859 if (getName().endsWith("/")) {
860 return true;
861 }
862
863 return false;
864 }
865
…lines 866–1254 unchanged (389 lines)

After

…lines 1–852 unchanged (852 lines)
853 }
854
855 if (linkFlag == LF_DIR) {
856 return true;
857 }
858
859 if (!isPaxHeader() && !isGlobalPaxHeader() && getName().endsWith("/")) {
860 return true;
861 }
862
863 return false;
864 }
865
…lines 866–1254 unchanged (389 lines)

Before

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "tar"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "File"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Date"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Locale"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "ArchiveEntry"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "utils"
. "."
identifier "ArchiveUtils"
; ";"
block_comment "/**\n * This class represents an entry in a Tar archive. It c"...
class_declaration
modifiers
public "public"
class "class"
identifier "TarArchiveEntry"
super_interfaces
implements "implements"
type_list
type_identifier "TarConstants"
, ","
type_identifier "ArchiveEntry"
class_body
{ "{"
field_declaration (+21 nodes collapsed)
block_comment "/** The entry's name. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "name"
= "="
string_literal
" "\""
" "\""
; ";"
block_comment "/** Whether to enforce leading slashes on the name */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "preserveLeadingSlashes"
; ";"
block_comment "/** The entry's permission mode. */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "mode"
; ";"
block_comment "/** The entry's user id. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "userId"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** The entry's group id. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "groupId"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** The entry's size. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "size"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** The entry's modification time. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "modTime"
; ";"
block_comment "/** If the header checksum is reasonably correct. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "checkSumOK"
; ";"
block_comment "/** The entry's link flag. */"
field_declaration
modifiers
private "private"
integral_type
byte "byte"
variable_declarator
identifier "linkFlag"
; ";"
block_comment "/** The entry's link name. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "linkName"
= "="
string_literal
" "\""
" "\""
; ";"
block_comment "/** The entry's magic tag. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "magic"
= "="
identifier "MAGIC_POSIX"
; ";"
block_comment "/** The version of the format */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "version"
= "="
identifier "VERSION_POSIX"
; ";"
block_comment "/** The entry's user name. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "userName"
; ";"
block_comment "/** The entry's group name. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "groupName"
= "="
string_literal
" "\""
" "\""
; ";"
block_comment "/** The entry's major device number. */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "devMajor"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** The entry's minor device number. */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "devMinor"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** If an extension sparse header follows. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "isExtended"
; ";"
block_comment "/** The entry's real size in case of a sparse file. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "realSize"
; ";"
block_comment "/** is this entry a GNU sparse entry using one of the PAX fo"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "paxGNUSparse"
; ";"
block_comment "/** is this entry a star sparse entry using the PAX header? "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "starSparse"
; ";"
block_comment "/** The entry's file reference */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "File"
variable_declarator
identifier "file"
; ";"
block_comment "/** Maximum length of a user's name in the tar file */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAX_NAMELEN"
= "="
decimal_integer_literal "31"
; ";"
block_comment "/** Default permissions bits for directories */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_DIR_MODE"
= "="
octal_integer_literal "040755"
; ";"
block_comment "/** Default permissions bits for files */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_FILE_MODE"
= "="
octal_integer_literal "0100644"
; ";"
block_comment "/** Convert millis to seconds */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MILLIS_PER_SECOND"
= "="
decimal_integer_literal "1000"
; ";"
block_comment "/**\n * Construct an empty entry and prepares the header "...
constructor_declaration (+82 nodes collapsed)
block_comment "/**\n * Construct an entry with only a name. This allows "...
constructor_declaration (+24 nodes collapsed)
block_comment "/**\n * Construct an entry with only a name. This allows "...
constructor_declaration (+137 nodes collapsed)
block_comment "/**\n * Construct an entry with a name and a link flag.\n "...
constructor_declaration (+33 nodes collapsed)
block_comment "/**\n * Construct an entry with a name and a link flag.\n "...
constructor_declaration (+70 nodes collapsed)
block_comment "/**\n * Construct an entry for a file. File is set to fil"...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n * Construct an entry for a file. File is set to fil"...
constructor_declaration (+226 nodes collapsed)
block_comment "/**\n * Construct an entry from an archive's header bytes"...
constructor_declaration (+34 nodes collapsed)
block_comment "/**\n * Construct an entry from an archive's header bytes"...
constructor_declaration (+45 nodes collapsed)
block_comment "/**\n * Determine if the two entries are equal. Equality "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Determine if the two entries are equal. Equality "...
method_declaration (+64 nodes collapsed)
block_comment "/**\n * Hashcodes are based on entry names.\n *\n *"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * Determine if the given entry is a descendant of t"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Get this entry's name.\n *\n * @return This"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "String"
identifier "getName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "name"
; ";"
} "}"
block_comment "/**\n * Set this entry's name.\n *\n * @param name "...
method_declaration (+35 nodes collapsed)
block_comment "/**\n * Set the mode for this entry\n *\n * @param "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Get this entry's link name.\n *\n * @return"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLinkName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "linkName"
; ";"
} "}"
block_comment "/**\n * Set this entry's link name.\n *\n * @param "...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Get this entry's user id.\n *\n * @return T"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Set this entry's user id.\n *\n * @param us"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Get this entry's user id.\n *\n * @return T"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getLongUserId"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "userId"
; ";"
} "}"
block_comment "/**\n * Set this entry's user id.\n *\n * @param us"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Get this entry's group id.\n *\n * @return "...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Set this entry's group id.\n *\n * @param g"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Get this entry's group id.\n *\n * @since 1"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getLongGroupId"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "groupId"
; ";"
} "}"
block_comment "/**\n * Set this entry's group id.\n *\n * @since 1"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Get this entry's user name.\n *\n * @return"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getUserName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "userName"
; ";"
} "}"
block_comment "/**\n * Set this entry's user name.\n *\n * @param "...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Get this entry's group name.\n *\n * @retur"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getGroupName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "groupName"
; ";"
} "}"
block_comment "/**\n * Set this entry's group name.\n *\n * @param"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Convenience method to set this entry's group and "...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Convenience method to set this entry's group and "...
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Set this entry's modification time. The parameter"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Set this entry's modification time.\n *\n *"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Set this entry's modification time.\n *\n *"...
method_declaration (+24 nodes collapsed)
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Get this entry's checksum status.\n *\n * @"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isCheckSumOK"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "checkSumOK"
; ";"
} "}"
block_comment "/**\n * Get this entry's file.\n *\n * @return This"...
method_declaration
modifiers
public "public"
type_identifier "File"
identifier "getFile"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "file"
; ";"
} "}"
block_comment "/**\n * Get this entry's mode.\n *\n * @return This"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getMode"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "mode"
; ";"
} "}"
block_comment "/**\n * Get this entry's file size.\n *\n * @return"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
integral_type
long "long"
identifier "getSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "size"
; ";"
} "}"
block_comment "/**\n * Set this entry's file size.\n *\n * @param "...
method_declaration (+54 nodes collapsed)
block_comment "/**\n * Get this entry's major device number.\n *\n "...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getDevMajor"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "devMajor"
; ";"
} "}"
block_comment "/**\n * Set this entry's major device number.\n *\n "...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Get this entry's minor device number.\n *\n "...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getDevMinor"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "devMinor"
; ";"
} "}"
block_comment "/**\n * Set this entry's minor device number.\n *\n "...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Indicates in case of an oldgnu sparse file if an "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isExtended"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "isExtended"
; ";"
} "}"
block_comment "/**\n * Get this entry's real file size in case of a spar"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getRealSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "realSize"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a GNU sparse block.\n "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Indicate if this entry is a GNU or star sparse bl"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isOldGNUSparse"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_GNUTYPE_SPARSE"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a GNU sparse block usin"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isPaxGNUSparse"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "paxGNUSparse"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a star sparse block usi"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isStarSparse"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "starSparse"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a GNU long linkname blo"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isGNULongLinkEntry"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_GNUTYPE_LONGLINK"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a GNU long name block\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isGNULongNameEntry"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_GNUTYPE_LONGNAME"
; ";"
} "}"
block_comment "/**\n * Check if this is a Pax header.\n *\n * @ret"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Check if this is a Pax header.\n *\n * @ret"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isGlobalPaxHeader"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_PAX_GLOBAL_EXTENDED_HEADER"
; ";"
} "}"
block_comment "/**\n * Return whether or not this entry represents a dir"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isDirectory"
formal_parameters
( "("
) ")"
block
{ "{"
if_statement (+22 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_DIR"
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
if_statement
if "if"
parenthesized_expression
( "("
method_invocation
method_invocation
identifier "getName"
argument_list
( "("
) ")"
. "."
identifier "endsWith"
argument_list
( "("
string_literal
" "\""
string_fragment "/"
" "\""
) ")"
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
return_statement
return "return"
false "false"
; ";"
} "}"
block_comment "/**\n * Check if this is a \"normal file\"\n *\n * @s"...
method_declaration (+75 nodes collapsed)
block_comment "/**\n * Check if this is a symbolic link entry.\n *\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isSymbolicLink"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_SYMLINK"
; ";"
} "}"
block_comment "/**\n * Check if this is a link entry.\n *\n * @sin"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isLink"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_LINK"
; ";"
} "}"
block_comment "/**\n * Check if this is a character device entry.\n *"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isCharacterDevice"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_CHR"
; ";"
} "}"
block_comment "/**\n * Check if this is a block device entry.\n *\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isBlockDevice"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_BLK"
; ";"
} "}"
block_comment "/**\n * Check if this is a FIFO (pipe) entry.\n *\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isFIFO"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_FIFO"
; ";"
} "}"
block_comment "/**\n * Check whether this is a sparse entry.\n *\n "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * If this entry represents a file, and the file is "...
method_declaration (+157 nodes collapsed)
block_comment "/**\n * Write an entry's header information to a header b"...
method_declaration (+98 nodes collapsed)
block_comment "/**\n * Write an entry's header information to a header b"...
method_declaration (+421 nodes collapsed)
method_declaration (+124 nodes collapsed)
block_comment "/**\n * Parse an entry's header information from a header"...
method_declaration (+96 nodes collapsed)
block_comment "/**\n * Parse an entry's header information from a header"...
method_declaration (+42 nodes collapsed)
method_declaration (+793 nodes collapsed)
block_comment "/**\n * Strips Windows' drive letter as well as any leadi"...
method_declaration (+316 nodes collapsed)
block_comment "/**\n * Evaluate an entry's header format from a header b"...
method_declaration (+104 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+66 nodes collapsed)
method_declaration (+69 nodes collapsed)
} "}"

After

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "tar"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "File"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Date"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Locale"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "ArchiveEntry"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "utils"
. "."
identifier "ArchiveUtils"
; ";"
block_comment "/**\n * This class represents an entry in a Tar archive. It c"...
class_declaration
modifiers
public "public"
class "class"
identifier "TarArchiveEntry"
super_interfaces
implements "implements"
type_list
type_identifier "TarConstants"
, ","
type_identifier "ArchiveEntry"
class_body
{ "{"
field_declaration (+21 nodes collapsed)
block_comment "/** The entry's name. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "name"
= "="
string_literal
" "\""
" "\""
; ";"
block_comment "/** Whether to enforce leading slashes on the name */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "preserveLeadingSlashes"
; ";"
block_comment "/** The entry's permission mode. */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "mode"
; ";"
block_comment "/** The entry's user id. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "userId"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** The entry's group id. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "groupId"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** The entry's size. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "size"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** The entry's modification time. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "modTime"
; ";"
block_comment "/** If the header checksum is reasonably correct. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "checkSumOK"
; ";"
block_comment "/** The entry's link flag. */"
field_declaration
modifiers
private "private"
integral_type
byte "byte"
variable_declarator
identifier "linkFlag"
; ";"
block_comment "/** The entry's link name. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "linkName"
= "="
string_literal
" "\""
" "\""
; ";"
block_comment "/** The entry's magic tag. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "magic"
= "="
identifier "MAGIC_POSIX"
; ";"
block_comment "/** The version of the format */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "version"
= "="
identifier "VERSION_POSIX"
; ";"
block_comment "/** The entry's user name. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "userName"
; ";"
block_comment "/** The entry's group name. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "groupName"
= "="
string_literal
" "\""
" "\""
; ";"
block_comment "/** The entry's major device number. */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "devMajor"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** The entry's minor device number. */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "devMinor"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/** If an extension sparse header follows. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "isExtended"
; ";"
block_comment "/** The entry's real size in case of a sparse file. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "realSize"
; ";"
block_comment "/** is this entry a GNU sparse entry using one of the PAX fo"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "paxGNUSparse"
; ";"
block_comment "/** is this entry a star sparse entry using the PAX header? "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "starSparse"
; ";"
block_comment "/** The entry's file reference */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "File"
variable_declarator
identifier "file"
; ";"
block_comment "/** Maximum length of a user's name in the tar file */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAX_NAMELEN"
= "="
decimal_integer_literal "31"
; ";"
block_comment "/** Default permissions bits for directories */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_DIR_MODE"
= "="
octal_integer_literal "040755"
; ";"
block_comment "/** Default permissions bits for files */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "DEFAULT_FILE_MODE"
= "="
octal_integer_literal "0100644"
; ";"
block_comment "/** Convert millis to seconds */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MILLIS_PER_SECOND"
= "="
decimal_integer_literal "1000"
; ";"
block_comment "/**\n * Construct an empty entry and prepares the header "...
constructor_declaration (+82 nodes collapsed)
block_comment "/**\n * Construct an entry with only a name. This allows "...
constructor_declaration (+24 nodes collapsed)
block_comment "/**\n * Construct an entry with only a name. This allows "...
constructor_declaration (+137 nodes collapsed)
block_comment "/**\n * Construct an entry with a name and a link flag.\n "...
constructor_declaration (+33 nodes collapsed)
block_comment "/**\n * Construct an entry with a name and a link flag.\n "...
constructor_declaration (+70 nodes collapsed)
block_comment "/**\n * Construct an entry for a file. File is set to fil"...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n * Construct an entry for a file. File is set to fil"...
constructor_declaration (+226 nodes collapsed)
block_comment "/**\n * Construct an entry from an archive's header bytes"...
constructor_declaration (+34 nodes collapsed)
block_comment "/**\n * Construct an entry from an archive's header bytes"...
constructor_declaration (+45 nodes collapsed)
block_comment "/**\n * Determine if the two entries are equal. Equality "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Determine if the two entries are equal. Equality "...
method_declaration (+64 nodes collapsed)
block_comment "/**\n * Hashcodes are based on entry names.\n *\n *"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * Determine if the given entry is a descendant of t"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Get this entry's name.\n *\n * @return This"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "String"
identifier "getName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "name"
; ";"
} "}"
block_comment "/**\n * Set this entry's name.\n *\n * @param name "...
method_declaration (+35 nodes collapsed)
block_comment "/**\n * Set the mode for this entry\n *\n * @param "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Get this entry's link name.\n *\n * @return"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getLinkName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "linkName"
; ";"
} "}"
block_comment "/**\n * Set this entry's link name.\n *\n * @param "...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Get this entry's user id.\n *\n * @return T"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Set this entry's user id.\n *\n * @param us"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Get this entry's user id.\n *\n * @return T"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getLongUserId"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "userId"
; ";"
} "}"
block_comment "/**\n * Set this entry's user id.\n *\n * @param us"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Get this entry's group id.\n *\n * @return "...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Set this entry's group id.\n *\n * @param g"...
method_declaration (+30 nodes collapsed)
block_comment "/**\n * Get this entry's group id.\n *\n * @since 1"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getLongGroupId"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "groupId"
; ";"
} "}"
block_comment "/**\n * Set this entry's group id.\n *\n * @since 1"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Get this entry's user name.\n *\n * @return"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getUserName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "userName"
; ";"
} "}"
block_comment "/**\n * Set this entry's user name.\n *\n * @param "...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Get this entry's group name.\n *\n * @retur"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getGroupName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "groupName"
; ";"
} "}"
block_comment "/**\n * Set this entry's group name.\n *\n * @param"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Convenience method to set this entry's group and "...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Convenience method to set this entry's group and "...
method_declaration (+38 nodes collapsed)
block_comment "/**\n * Set this entry's modification time. The parameter"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Set this entry's modification time.\n *\n *"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Set this entry's modification time.\n *\n *"...
method_declaration (+24 nodes collapsed)
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Get this entry's checksum status.\n *\n * @"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isCheckSumOK"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "checkSumOK"
; ";"
} "}"
block_comment "/**\n * Get this entry's file.\n *\n * @return This"...
method_declaration
modifiers
public "public"
type_identifier "File"
identifier "getFile"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "file"
; ";"
} "}"
block_comment "/**\n * Get this entry's mode.\n *\n * @return This"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getMode"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "mode"
; ";"
} "}"
block_comment "/**\n * Get this entry's file size.\n *\n * @return"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
integral_type
long "long"
identifier "getSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "size"
; ";"
} "}"
block_comment "/**\n * Set this entry's file size.\n *\n * @param "...
method_declaration (+54 nodes collapsed)
block_comment "/**\n * Get this entry's major device number.\n *\n "...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getDevMajor"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "devMajor"
; ";"
} "}"
block_comment "/**\n * Set this entry's major device number.\n *\n "...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Get this entry's minor device number.\n *\n "...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getDevMinor"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "devMinor"
; ";"
} "}"
block_comment "/**\n * Set this entry's minor device number.\n *\n "...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Indicates in case of an oldgnu sparse file if an "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isExtended"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "isExtended"
; ";"
} "}"
block_comment "/**\n * Get this entry's real file size in case of a spar"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getRealSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "realSize"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a GNU sparse block.\n "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Indicate if this entry is a GNU or star sparse bl"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isOldGNUSparse"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_GNUTYPE_SPARSE"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a GNU sparse block usin"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isPaxGNUSparse"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "paxGNUSparse"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a star sparse block usi"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isStarSparse"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "starSparse"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a GNU long linkname blo"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isGNULongLinkEntry"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_GNUTYPE_LONGLINK"
; ";"
} "}"
block_comment "/**\n * Indicate if this entry is a GNU long name block\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isGNULongNameEntry"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_GNUTYPE_LONGNAME"
; ";"
} "}"
block_comment "/**\n * Check if this is a Pax header.\n *\n * @ret"...
method_declaration (+24 nodes collapsed)
block_comment "/**\n * Check if this is a Pax header.\n *\n * @ret"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isGlobalPaxHeader"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_PAX_GLOBAL_EXTENDED_HEADER"
; ";"
} "}"
block_comment "/**\n * Return whether or not this entry represents a dir"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isDirectory"
formal_parameters
( "("
) ")"
block
{ "{"
if_statement (+22 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_DIR"
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
unary_expression
! "!"
method_invocation
identifier "isPaxHeader"
argument_list
( "("
) ")"
&& "&&"
unary_expression
! "!"
method_invocation
identifier "isGlobalPaxHeader"
argument_list
( "("
) ")"
&& "&&"
method_invocation
method_invocation
identifier "getName"
argument_list
( "("
) ")"
. "."
identifier "endsWith"
argument_list
( "("
string_literal
" "\""
string_fragment "/"
" "\""
) ")"
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
return_statement
return "return"
false "false"
; ";"
} "}"
block_comment "/**\n * Check if this is a \"normal file\"\n *\n * @s"...
method_declaration (+75 nodes collapsed)
block_comment "/**\n * Check if this is a symbolic link entry.\n *\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isSymbolicLink"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_SYMLINK"
; ";"
} "}"
block_comment "/**\n * Check if this is a link entry.\n *\n * @sin"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isLink"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_LINK"
; ";"
} "}"
block_comment "/**\n * Check if this is a character device entry.\n *"...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isCharacterDevice"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_CHR"
; ";"
} "}"
block_comment "/**\n * Check if this is a block device entry.\n *\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isBlockDevice"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_BLK"
; ";"
} "}"
block_comment "/**\n * Check if this is a FIFO (pipe) entry.\n *\n "...
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "isFIFO"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "linkFlag"
== "=="
identifier "LF_FIFO"
; ";"
} "}"
block_comment "/**\n * Check whether this is a sparse entry.\n *\n "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * If this entry represents a file, and the file is "...
method_declaration (+157 nodes collapsed)
block_comment "/**\n * Write an entry's header information to a header b"...
method_declaration (+98 nodes collapsed)
block_comment "/**\n * Write an entry's header information to a header b"...
method_declaration (+421 nodes collapsed)
method_declaration (+124 nodes collapsed)
block_comment "/**\n * Parse an entry's header information from a header"...
method_declaration (+96 nodes collapsed)
block_comment "/**\n * Parse an entry's header information from a header"...
method_declaration (+42 nodes collapsed)
method_declaration (+793 nodes collapsed)
block_comment "/**\n * Strips Windows' drive letter as well as any leadi"...
method_declaration (+316 nodes collapsed)
block_comment "/**\n * Evaluate an entry's header format from a header b"...
method_declaration (+104 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+66 nodes collapsed)
method_declaration (+69 nodes collapsed)
} "}"