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–58 unchanged (58 lines)
59public class ZipArchiveInputStream extends ArchiveInputStream {
60
61 /** The zip encoding to use for filenames and the file comment. */
62 private final ZipEncoding zipEncoding;
63
64 // the provided encoding (for unit tests)
65
66 /** Whether to look for and use Unicode extra fields. */
67 private final boolean useUnicodeExtraFields;
68
69 /** Wrapped stream, will always be a PushbackInputStream. */
70 private final InputStream in;
71
…lines 72–177 unchanged (106 lines)
178 * @since 1.1
179 */
180 public ZipArchiveInputStream(InputStream inputStream,
181 String encoding,
182 boolean useUnicodeExtraFields,
183 boolean allowStoredEntriesWithDataDescriptor) {
184 zipEncoding = ZipEncodingHelper.getZipEncoding(encoding);
185 this.useUnicodeExtraFields = useUnicodeExtraFields;
186 in = new PushbackInputStream(inputStream, buf.capacity());
187 this.allowStoredEntriesWithDataDescriptor =
188 allowStoredEntriesWithDataDescriptor;
189 // haven't read anything so far
190 buf.limit(0);
…lines 191–1081 unchanged (891 lines)

After

…lines 1–58 unchanged (58 lines)
59public class ZipArchiveInputStream extends ArchiveInputStream {
60
61 /** The zip encoding to use for filenames and the file comment. */
62 private final ZipEncoding zipEncoding;
63
64 // the provided encoding (for unit tests)
65 final String encoding;
66
67 /** Whether to look for and use Unicode extra fields. */
68 private final boolean useUnicodeExtraFields;
69
70 /** Wrapped stream, will always be a PushbackInputStream. */
71 private final InputStream in;
…lines 72–178 unchanged (107 lines)
179 * @since 1.1
180 */
181 public ZipArchiveInputStream(InputStream inputStream,
182 String encoding,
183 boolean useUnicodeExtraFields,
184 boolean allowStoredEntriesWithDataDescriptor) {
185 this.encoding = encoding;
186 zipEncoding = ZipEncodingHelper.getZipEncoding(encoding);
187 this.useUnicodeExtraFields = useUnicodeExtraFields;
188 in = new PushbackInputStream(inputStream, buf.capacity());
189 this.allowStoredEntriesWithDataDescriptor =
190 allowStoredEntriesWithDataDescriptor;
191 // haven't read anything so far
…lines 192–1083 unchanged (892 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 "zip"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "ByteArrayInputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "ByteArrayOutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "EOFException"
; ";"
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 "io"
. "."
identifier "InputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "PushbackInputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "nio"
. "."
identifier "ByteBuffer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "CRC32"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "DataFormatException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "Inflater"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipEntry"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipException"
; ";"
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
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "ArchiveInputStream"
; ";"
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 "IOUtils"
; ";"
import_declaration (+26 nodes collapsed)
import_declaration (+26 nodes collapsed)
import_declaration (+26 nodes collapsed)
import_declaration (+26 nodes collapsed)
block_comment "/**\n * Implements an input stream that can read Zip archives"...
class_declaration
modifiers
public "public"
class "class"
identifier "ZipArchiveInputStream"
superclass
extends "extends"
type_identifier "ArchiveInputStream"
class_body
{ "{"
block_comment "/** The zip encoding to use for filenames and the file comme"...
field_declaration
modifiers
private "private"
final "final"
type_identifier "ZipEncoding"
variable_declarator
identifier "zipEncoding"
; ";"
line_comment "// the provided encoding (for unit tests)"
block_comment "/** Whether to look for and use Unicode extra fields. */"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "useUnicodeExtraFields"
; ";"
block_comment "/** Wrapped stream, will always be a PushbackInputStream. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "InputStream"
variable_declarator
identifier "in"
; ";"
block_comment "/** Inflater used for all deflated entries. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Inflater"
variable_declarator
identifier "inf"
= "="
object_creation_expression
new "new"
type_identifier "Inflater"
argument_list
( "("
true "true"
) ")"
; ";"
block_comment "/** Buffer used to read from the wrapped stream. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "ByteBuffer"
variable_declarator
identifier "buf"
= "="
method_invocation
identifier "ByteBuffer"
. "."
identifier "allocate"
argument_list
( "("
field_access
identifier "ZipArchiveOutputStream"
. "."
identifier "BUFFER_SIZE"
) ")"
; ";"
block_comment "/** The entry that is currently being read. */"
field_declaration
modifiers
private "private"
type_identifier "CurrentEntry"
variable_declarator
identifier "current"
= "="
null_literal "null"
; ";"
block_comment "/** Whether the stream has been closed. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "closed"
= "="
false "false"
; ";"
block_comment "/** Whether the stream has reached the central directory - a"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "hitCentralDirectory"
= "="
false "false"
; ";"
block_comment "/**\n * When reading a stored entry that uses the data de"...
field_declaration
modifiers
private "private"
type_identifier "ByteArrayInputStream"
variable_declarator
identifier "lastStoredEntry"
= "="
null_literal "null"
; ";"
block_comment "/** Whether the stream will try to read STORED entries that "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "allowStoredEntriesWithDataDescriptor"
= "="
false "false"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "LFH_LEN"
= "="
decimal_integer_literal "30"
; ";"
block_comment "/*\n local file header signature WORD\n version "...
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "CFH_LEN"
= "="
decimal_integer_literal "46"
; ";"
block_comment "/*\n central file header signature WORD\n vers"...
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "TWO_EXP_32"
= "="
binary_expression
identifier "ZIP64_MAGIC"
+ "+"
decimal_integer_literal "1"
; ";"
line_comment "// cached buffers - must only be used locally in the class ("...
field_declaration (+22 nodes collapsed)
field_declaration (+22 nodes collapsed)
field_declaration (+22 nodes collapsed)
field_declaration (+22 nodes collapsed)
field_declaration (+25 nodes collapsed)
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "entriesRead"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/**\n * Create an instance using UTF-8 encoding\n * @p"...
constructor_declaration (+25 nodes collapsed)
block_comment "/**\n * @param encoding the encoding to use for file name"...
constructor_declaration (+28 nodes collapsed)
block_comment "/**\n * @param encoding the encoding to use for file name"...
constructor_declaration (+34 nodes collapsed)
block_comment "/**\n * @param encoding the encoding to use for file name"...
constructor_declaration
modifiers
public "public"
identifier "ZipArchiveInputStream"
formal_parameters
( "("
formal_parameter
type_identifier "InputStream"
identifier "inputStream"
, ","
formal_parameter
type_identifier "String"
identifier "encoding"
, ","
formal_parameter
boolean_type "boolean"
identifier "useUnicodeExtraFields"
, ","
formal_parameter
boolean_type "boolean"
identifier "allowStoredEntriesWithDataDescriptor"
) ")"
constructor_body
{ "{"
expression_statement
assignment_expression
identifier "zipEncoding"
= "="
method_invocation
identifier "ZipEncodingHelper"
. "."
identifier "getZipEncoding"
argument_list
( "("
identifier "encoding"
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "useUnicodeExtraFields"
= "="
identifier "useUnicodeExtraFields"
; ";"
expression_statement
assignment_expression
identifier "in"
= "="
object_creation_expression
new "new"
type_identifier "PushbackInputStream"
argument_list
( "("
identifier "inputStream"
, ","
method_invocation
identifier "buf"
. "."
identifier "capacity"
argument_list
( "("
) ")"
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "allowStoredEntriesWithDataDescriptor"
= "="
identifier "allowStoredEntriesWithDataDescriptor"
; ";"
line_comment "// haven't read anything so far"
expression_statement
method_invocation
identifier "buf"
. "."
identifier "limit"
argument_list
( "("
decimal_integer_literal "0"
) ")"
; ";"
} "}"
method_declaration (+901 nodes collapsed)
block_comment "/**\n * Fills the given array with the first local file h"...
method_declaration (+168 nodes collapsed)
block_comment "/**\n * Records whether a Zip64 extra is present and sets"...
method_declaration (+202 nodes collapsed)
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Whether this class is able to read the given entr"...
method_declaration (+63 nodes collapsed)
method_declaration (+406 nodes collapsed)
block_comment "/**\n * Implementation of read for STORED entries.\n *"...
method_declaration (+311 nodes collapsed)
block_comment "/**\n * Implementation of read for DEFLATED entries.\n "...
method_declaration (+156 nodes collapsed)
block_comment "/**\n * Potentially reads more bytes to fill the inflater"...
method_declaration (+210 nodes collapsed)
method_declaration (+52 nodes collapsed)
block_comment "/**\n * Skips over and discards value bytes of data from "...
method_declaration (+141 nodes collapsed)
block_comment "/**\n * Checks if the signature matches what is expected "...
method_declaration (+109 nodes collapsed)
method_declaration (+83 nodes collapsed)
block_comment "/**\n * Closes the current ZIP archive entry and position"...
method_declaration (+266 nodes collapsed)
block_comment "/**\n * Read all data of the current entry from the under"...
method_declaration (+149 nodes collapsed)
block_comment "/**\n * Get the number of bytes Inflater has actually pro"...
method_declaration (+69 nodes collapsed)
method_declaration (+124 nodes collapsed)
method_declaration (+71 nodes collapsed)
method_declaration (+259 nodes collapsed)
block_comment "/**\n * Whether this entry requires a data descriptor thi"...
method_declaration (+68 nodes collapsed)
block_comment "/**\n * Caches a stored entry that uses the data descript"...
method_declaration (+236 nodes collapsed)
field_declaration (+25 nodes collapsed)
field_declaration (+25 nodes collapsed)
field_declaration (+25 nodes collapsed)
block_comment "/**\n * Checks whether the current buffer contains the si"...
method_declaration (+390 nodes collapsed)
block_comment "/**\n * If the last read bytes could hold a data descript"...
method_declaration (+137 nodes collapsed)
method_declaration (+61 nodes collapsed)
line_comment "// End of Central Directory Record"
line_comment "// end of central dir signature WORD"
line_comment "// number of this disk SHORT"
line_comment "// number of the disk with the"
line_comment "// start of the central directory SHORT"
line_comment "// total number of entries in the"
line_comment "// central directory on this disk SHORT"
line_comment "// total number of entries in"
line_comment "// the central directory SHORT"
line_comment "// size of the central directory WORD"
line_comment "// offset of start of central"
line_comment "// directory with respect to"
line_comment "// the starting disk number WORD"
line_comment "// .ZIP file comment length SHORT"
line_comment "// .ZIP file comment up to 64KB"
line_comment "//"
block_comment "/**\n * Reads the stream until it find the \"End of centra"...
method_declaration (+81 nodes collapsed)
block_comment "/**\n * Reads forward until the signature of the "En"...
method_declaration (+254 nodes collapsed)
block_comment "/**\n * Skips bytes by reading from the underlying stream"...
method_declaration (+145 nodes collapsed)
block_comment "/**\n * Reads bytes by reading from the underlying stream"...
method_declaration (+55 nodes collapsed)
method_declaration (+29 nodes collapsed)
block_comment "/**\n * Structure collecting information for the entry th"...
class_declaration (+84 nodes collapsed)
block_comment "/**\n * Bounded input stream adapted from commons-io\n "...
class_declaration (+511 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 "zip"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "ByteArrayInputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "ByteArrayOutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "EOFException"
; ";"
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 "io"
. "."
identifier "InputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "PushbackInputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "nio"
. "."
identifier "ByteBuffer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "CRC32"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "DataFormatException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "Inflater"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipEntry"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipException"
; ";"
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
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "ArchiveInputStream"
; ";"
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 "IOUtils"
; ";"
import_declaration (+26 nodes collapsed)
import_declaration (+26 nodes collapsed)
import_declaration (+26 nodes collapsed)
import_declaration (+26 nodes collapsed)
block_comment "/**\n * Implements an input stream that can read Zip archives"...
class_declaration
modifiers
public "public"
class "class"
identifier "ZipArchiveInputStream"
superclass
extends "extends"
type_identifier "ArchiveInputStream"
class_body
{ "{"
block_comment "/** The zip encoding to use for filenames and the file comme"...
field_declaration
modifiers
private "private"
final "final"
type_identifier "ZipEncoding"
variable_declarator
identifier "zipEncoding"
; ";"
line_comment "// the provided encoding (for unit tests)"
field_declaration
modifiers
final "final"
type_identifier "String"
variable_declarator
identifier "encoding"
; ";"
block_comment "/** Whether to look for and use Unicode extra fields. */"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "useUnicodeExtraFields"
; ";"
block_comment "/** Wrapped stream, will always be a PushbackInputStream. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "InputStream"
variable_declarator
identifier "in"
; ";"
block_comment "/** Inflater used for all deflated entries. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Inflater"
variable_declarator
identifier "inf"
= "="
object_creation_expression
new "new"
type_identifier "Inflater"
argument_list
( "("
true "true"
) ")"
; ";"
block_comment "/** Buffer used to read from the wrapped stream. */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "ByteBuffer"
variable_declarator
identifier "buf"
= "="
method_invocation
identifier "ByteBuffer"
. "."
identifier "allocate"
argument_list
( "("
field_access
identifier "ZipArchiveOutputStream"
. "."
identifier "BUFFER_SIZE"
) ")"
; ";"
block_comment "/** The entry that is currently being read. */"
field_declaration
modifiers
private "private"
type_identifier "CurrentEntry"
variable_declarator
identifier "current"
= "="
null_literal "null"
; ";"
block_comment "/** Whether the stream has been closed. */"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "closed"
= "="
false "false"
; ";"
block_comment "/** Whether the stream has reached the central directory - a"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "hitCentralDirectory"
= "="
false "false"
; ";"
block_comment "/**\n * When reading a stored entry that uses the data de"...
field_declaration
modifiers
private "private"
type_identifier "ByteArrayInputStream"
variable_declarator
identifier "lastStoredEntry"
= "="
null_literal "null"
; ";"
block_comment "/** Whether the stream will try to read STORED entries that "...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "allowStoredEntriesWithDataDescriptor"
= "="
false "false"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "LFH_LEN"
= "="
decimal_integer_literal "30"
; ";"
block_comment "/*\n local file header signature WORD\n version "...
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "CFH_LEN"
= "="
decimal_integer_literal "46"
; ";"
block_comment "/*\n central file header signature WORD\n vers"...
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "TWO_EXP_32"
= "="
binary_expression
identifier "ZIP64_MAGIC"
+ "+"
decimal_integer_literal "1"
; ";"
line_comment "// cached buffers - must only be used locally in the class ("...
field_declaration (+22 nodes collapsed)
field_declaration (+22 nodes collapsed)
field_declaration (+22 nodes collapsed)
field_declaration (+22 nodes collapsed)
field_declaration (+25 nodes collapsed)
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "entriesRead"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/**\n * Create an instance using UTF-8 encoding\n * @p"...
constructor_declaration (+25 nodes collapsed)
block_comment "/**\n * @param encoding the encoding to use for file name"...
constructor_declaration (+28 nodes collapsed)
block_comment "/**\n * @param encoding the encoding to use for file name"...
constructor_declaration (+34 nodes collapsed)
block_comment "/**\n * @param encoding the encoding to use for file name"...
constructor_declaration
modifiers
public "public"
identifier "ZipArchiveInputStream"
formal_parameters
( "("
formal_parameter
type_identifier "InputStream"
identifier "inputStream"
, ","
formal_parameter
type_identifier "String"
identifier "encoding"
, ","
formal_parameter
boolean_type "boolean"
identifier "useUnicodeExtraFields"
, ","
formal_parameter
boolean_type "boolean"
identifier "allowStoredEntriesWithDataDescriptor"
) ")"
constructor_body
{ "{"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "encoding"
= "="
identifier "encoding"
; ";"
expression_statement
assignment_expression
identifier "zipEncoding"
= "="
method_invocation
identifier "ZipEncodingHelper"
. "."
identifier "getZipEncoding"
argument_list
( "("
identifier "encoding"
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "useUnicodeExtraFields"
= "="
identifier "useUnicodeExtraFields"
; ";"
expression_statement
assignment_expression
identifier "in"
= "="
object_creation_expression
new "new"
type_identifier "PushbackInputStream"
argument_list
( "("
identifier "inputStream"
, ","
method_invocation
identifier "buf"
. "."
identifier "capacity"
argument_list
( "("
) ")"
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "allowStoredEntriesWithDataDescriptor"
= "="
identifier "allowStoredEntriesWithDataDescriptor"
; ";"
line_comment "// haven't read anything so far"
expression_statement
method_invocation
identifier "buf"
. "."
identifier "limit"
argument_list
( "("
decimal_integer_literal "0"
) ")"
; ";"
} "}"
method_declaration (+901 nodes collapsed)
block_comment "/**\n * Fills the given array with the first local file h"...
method_declaration (+168 nodes collapsed)
block_comment "/**\n * Records whether a Zip64 extra is present and sets"...
method_declaration (+202 nodes collapsed)
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Whether this class is able to read the given entr"...
method_declaration (+63 nodes collapsed)
method_declaration (+406 nodes collapsed)
block_comment "/**\n * Implementation of read for STORED entries.\n *"...
method_declaration (+311 nodes collapsed)
block_comment "/**\n * Implementation of read for DEFLATED entries.\n "...
method_declaration (+156 nodes collapsed)
block_comment "/**\n * Potentially reads more bytes to fill the inflater"...
method_declaration (+210 nodes collapsed)
method_declaration (+52 nodes collapsed)
block_comment "/**\n * Skips over and discards value bytes of data from "...
method_declaration (+141 nodes collapsed)
block_comment "/**\n * Checks if the signature matches what is expected "...
method_declaration (+109 nodes collapsed)
method_declaration (+83 nodes collapsed)
block_comment "/**\n * Closes the current ZIP archive entry and position"...
method_declaration (+266 nodes collapsed)
block_comment "/**\n * Read all data of the current entry from the under"...
method_declaration (+149 nodes collapsed)
block_comment "/**\n * Get the number of bytes Inflater has actually pro"...
method_declaration (+69 nodes collapsed)
method_declaration (+124 nodes collapsed)
method_declaration (+71 nodes collapsed)
method_declaration (+259 nodes collapsed)
block_comment "/**\n * Whether this entry requires a data descriptor thi"...
method_declaration (+68 nodes collapsed)
block_comment "/**\n * Caches a stored entry that uses the data descript"...
method_declaration (+236 nodes collapsed)
field_declaration (+25 nodes collapsed)
field_declaration (+25 nodes collapsed)
field_declaration (+25 nodes collapsed)
block_comment "/**\n * Checks whether the current buffer contains the si"...
method_declaration (+390 nodes collapsed)
block_comment "/**\n * If the last read bytes could hold a data descript"...
method_declaration (+137 nodes collapsed)
method_declaration (+61 nodes collapsed)
line_comment "// End of Central Directory Record"
line_comment "// end of central dir signature WORD"
line_comment "// number of this disk SHORT"
line_comment "// number of the disk with the"
line_comment "// start of the central directory SHORT"
line_comment "// total number of entries in the"
line_comment "// central directory on this disk SHORT"
line_comment "// total number of entries in"
line_comment "// the central directory SHORT"
line_comment "// size of the central directory WORD"
line_comment "// offset of start of central"
line_comment "// directory with respect to"
line_comment "// the starting disk number WORD"
line_comment "// .ZIP file comment length SHORT"
line_comment "// .ZIP file comment up to 64KB"
line_comment "//"
block_comment "/**\n * Reads the stream until it find the \"End of centra"...
method_declaration (+81 nodes collapsed)
block_comment "/**\n * Reads forward until the signature of the "En"...
method_declaration (+254 nodes collapsed)
block_comment "/**\n * Skips bytes by reading from the underlying stream"...
method_declaration (+145 nodes collapsed)
block_comment "/**\n * Reads bytes by reading from the underlying stream"...
method_declaration (+55 nodes collapsed)
method_declaration (+29 nodes collapsed)
block_comment "/**\n * Structure collecting information for the entry th"...
class_declaration (+84 nodes collapsed)
block_comment "/**\n * Bounded input stream adapted from commons-io\n "...
class_declaration (+511 nodes collapsed)
} "}"