docstring
stringlengths
3
2.38k
code
stringlengths
9
99.4k
extract next entry from jar file , creating directories as needed
ZipEntry . getName File . <init> File . exists File . isDirectory File . getPath File . <init> File . getPath ZipInputStream . cast ZipInputStream . closeEntry InputStream . close ZipEntry . getTime File . setLastModified
extract next entry from jar file , creating directories as needed
ZipEntry . getName File . <init> File . exists File . isDirectory File . getPath File . getParent File . <init> File . getPath ZipInputStream . cast ZipInputStream . closeEntry InputStream . close ZipEntry . getTime File . setLastModified
unpack a single zip entry
ZipEntry . getName File . <init> File . exists File . mkdirs BufferedOutputStream . <init> OutputStream . close
unzip a specific zip entry from the input stream to the output directory
ZipEntry . getName File . <init> File . exists FileOutputStream . <init> InputStream . read FileOutputStream . write FileOutputStream . close
construct a zip path entry from the given file and entry
ZipEntry . getName File . <init> File . getName ZipFile . getName ZipEntry . getName File . <init>
extract an entry of a zip file to a specified directory
ZipEntry . getName File . <init> File . getParentFile File . exists File . mkdirs ZipFile . getInputStream BufferedInputStream . <init> FileOutputStream . <init> BufferedOutputStream . <init> BufferedInputStream . close BufferedOutputStream . close
unzip a specific zip entry from the input stream to the output directory
ZipEntry . getName File . <init> File . getParentFile FileOutputStream . <init> InputStream . read FileOutputStream . write FileOutputStream . close
attempt to ensure the destination directory structure is generated
ZipEntry . getName File . <init> File . getParentFile
extract next entry from jar file , creating directories as needed
ZipEntry . getName File . <init> File . getPath File . mkdirs File . getPath File . getParent File . <init> File . exists File . getPath ZipInputStream . instance ZipInputStream . closeEntry ZipInputStream . cast InputStream . close ZipEntry . getTime File . setLastModified
extract the contents of the specified folder from the given zip file url
ZipEntry . getName File . <init> File . getPath String . length String . substring File . <init>
copy binary file from zip assets into bin directory
ZipEntry . getName File . <init> File . lastModified ZipEntry . getTime FileOutputStream . <init> OutputStream . write OutputStream . close
unzip to directory
ZipEntry . getName File . <init> File . mkdirs File . createNewFile ZipInputStream . closeEntry ZipInputStream . close
extract zip file entries
ZipEntry . getName File . <init> File . mkdirs File . getParent File . <init> File . mkdirs ZipFile . getInputStream FileOutputStream . <init> OutputStream . write OutputStream . close InputStream . close
copy and transform the zip entry to the destination
ZipEntry . getName File . <init> File . mkdirs File . getParentFile File . mkdirs Collection < String > . contains File . getName Collection < String > . contains Utils . <unk> Utils . copy
extract a zip entry to a directory
ZipEntry . getName File . <init> FileOutputStream . <init> BufferedOutputStream . <init> ZipInputStream . read BufferedOutputStream . write BufferedOutputStream . flush BufferedOutputStream . close File . getAbsolutePath
extract zip file contents into destination folder
ZipEntry . getName File . <init> FileOutputStream . <init> FileOutputStream . close ZipInputStream . closeEntry
temporary <unk> a file to check against ep <unk> document v1 0
ZipEntry . getName File . <init> String . length String . substring File . delete
copy binary file from zip assets into bin directory
ZipEntry . getName File . <init> ZipEntry . getTime FileOutputStream . <init> OutputStream . write OutputStream . close
extract next entry from jar file , creating directories as needed
ZipEntry . getName File . <init> ZipEntry . isDirectory File . exists File . getPath File . <init> File . exists File . mkdirs File . isDirectory File . getPath ZipInputStream . instance ZipInputStream . cast ZipInputStream . closeEntry InputStream . close ZipEntry . getTime File . setLastModified
extract next entry from jar file , creating directories as needed
ZipEntry . getName File . <init> ZipEntry . isDirectory File . exists File . getPath File . mkdirs File . getPath File . getParent File . <init> File . mkdirs File . getPath ZipInputStream . instance ZipInputStream . closeEntry ZipInputStream . cast InputStream . close ZipEntry . getMethod ZipEntry . getTime File . setLastModified
extract next entry from jar file , creating directories as needed
ZipEntry . getName File . <init> ZipEntry . isDirectory File . getPath File . getParent File . <init> File . mkdirs File . exists File . getPath ZipInputStream . instance ZipInputStream . cast ZipInputStream . closeEntry InputStream . close ZipEntry . getMethod ZipEntry . getTime File . setLastModified
perform extraction and build container model
ZipEntry . getName File . <init> ZipEntry . isDirectory File . mkdirs ZipEntry . getSize ZipEntry . getTime File . setLastModified ZipInputStream . closeEntry Entry . <init> Container . getEntries Entry . <init> List < Entry > . add ZipInputStream . close
construct a zip path entry from the given file and entry
ZipEntry . getName File . getName ZipEntry . getName File . <init>
common write file that will close after writing
ZipEntry . getName File . mkdirs File . getParentFile File . mkdirs ZipFile . getInputStream FileOutputStream . <init> FileOutputStream . write FileOutputStream . close InputStream . close
extract a zip entry to the given folder
ZipEntry . getName FileObject . resolveFile FileObject . getContent OutputStream . write OutputStream . close
extract a zip entry to the given folder
ZipEntry . getName FileObject . resolveFile ZipInputStream . read OutputStream . write OutputStream . close
<unk> un archivo contenido dentro del archivo zip
ZipEntry . getName FileOutputStream . <init> BufferedOutputStream . <init> BufferedOutputStream . write ZipInputStream . closeEntry
<unk> un archivo contenido dentro del archivo zip
ZipEntry . getName FileOutputStream . <init> BufferedOutputStream . <init> ZipInputStream . read BufferedOutputStream . write ZipInputStream . closeEntry
return an input stream for the given entry
ZipEntry . getName HashMap . containsKey JarFile . debug ZipEntry . getName
create an input stream reading the given zip entry as uncompressed data
ZipEntry . getName HashMap . get ZipEntry . cast ZipEntry . getMethod BufferedInputStream . <init> ZipEntry . getCompressedSize InflaterInputStream . <init>
determine whether this object has marked a given jar file entry for exclusion from the result
ZipEntry . getName Iterator . hasNext String . cast String . startsWith
return an input stream for the given entry
ZipEntry . getName JarFile . debug HashMap . get
construct a new jar input stream from an input stream
ZipEntry . getName JarInputStream . closeEntry JarInputStream . getNextJarEntry ZipEntry . getName Manifest . <init> JarInputStream . closeEntry HashMap < String > . <init> HashMap < String > . put JarVerifier . <init>
read up to length of decompressed data and stores it in buffer starting at offset
ZipEntry . getName JarVerifier . addMetaEntry ByteArrayOutputStream . cast ByteArrayOutputStream . toByteArray JarVerifier . <unk> JarVerifier . <unk> OutputStream . write
get the default <unk> set
ZipEntry . getName List < SourceFile > . add ZipEntry . getName List < SourceFile > . add Charset . forName
visit a specific zip file entry
ZipEntry . getName Map < String , Set < String > > . get HashSet < String > . <init> Map < String , Set < String > > . put Set < String > . add
add an entry to our tree
ZipEntry . getName Map < String > . get Map < String > . put
append all entries within zip into into zip
ZipEntry . getName Output . print ZipOutputStream . putNextEntry ZipOutputStream . write ZipOutputStream . closeEntry ZipInputStream . close
gather all the <unk> used in this spread
ZipEntry . getName Parameters . <unk> ArrayList < String > . <init> DocumentBuilder . parse ZipEntry . getName Document . getElementsByTagName NodeList . getLength NodeList . item Element . cast Element . getAttribute ArrayList < String > . contains ArrayList < String > . add Document . getElementsByTagName NodeList . getLength Element . cast Element . getAttribute ArrayList < String > . add LinkedHashMap < String , ArrayList < String > > . put ArrayList < String > . size
gather all the <unk> used in this spread
ZipEntry . getName Parameters . <unk> ZipEntry . getName ArrayList < String > . <init> DocumentBuilder . parse ZipEntry . getName Document . getElementsByTagName NodeList . getLength NodeList . item Element . cast Element . getAttribute Util . isEmpty Element . getAttribute ArrayList < String > . contains ArrayList < String > . add Document . getElementsByTagName NodeList . getLength Element . cast Element . getAttribute Util . isEmpty ArrayList < String > . add LinkedHashMap < String , ArrayList < String > > . put ArrayList < String > . size
create a new file zip entry with the specified name
ZipEntry . getName Path . <init> Map . get ZipEntry . cast Map . get List . cast List . add
create a new file zip entry with the specified name
ZipEntry . getName Path . <init> Map < ZipEntry > . get ZipEntry . cast Map < ZipEntry , List < ZipEntry > > . get List < ZipEntry > . add
create a new file zip entry with the specified name
ZipEntry . getName Path . <init> Map < ZipEntry > . get ZipEntry . cast Map < ZipEntry , List < ZipEntry > > . get List < ZipEntry > . cast List < ZipEntry > . add
create a resource out of the given zip entry and input stream
ZipEntry . getName Resource . <init>
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . charAt String . length String . substring String . length String . charAt String . length String . substring Tree . getParent
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . charAt String . length String . substring String . length String . charAt String . substring Tree . getParent
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . charAt String . substring String . charAt String . length String . substring
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . charAt String . substring String . length String . charAt String . length String . substring
common write file that will close after writing
ZipEntry . getName String . endsWith File . mkdirs File . getParentFile File . mkdirs ZipFile . getInputStream FileOutputStream . <init> InputStream . read FileOutputStream . write FileOutputStream . close InputStream . close
this method works out if the provided entry is inside this directory
ZipEntry . getName String . endsWith String . length String . substring String . startsWith String . equals String . length
construct a nested zip file
ZipEntry . getName String . endsWith String . length String . substring ZipEntry . getSize ZipEntry . getTime
return an input stream giving the data from a given entry in this archive
ZipEntry . getName String . equals ZipInputStream . close
construct a new jar input stream from an input stream
ZipEntry . getName String . equalsIgnoreCase JarInputStream . closeEntry JarInputStream . getNextJarEntry ZipEntry . getName String . equalsIgnoreCase Manifest . <init> JarInputStream . closeEntry HashMap < String > . <init> HashMap < String > . put JarVerifier . <init>
unzip a module
ZipEntry . getName String . isEmpty ZipEntry . isDirectory File . <init> File . exists File . <init> FileOutputStream . <init> BufferedOutputStream . <init> BufferedOutputStream . write BufferedOutputStream . flush BufferedOutputStream . close File . delete
be given zip entry under given directory ?
ZipEntry . getName String . lastIndexOf String . substring String . startsWith
resolve just the filename from an entry name
ZipEntry . getName String . lastIndexOf String . substring
return file location for the specified zip entry
ZipEntry . getName String . lastIndexOf String . substring
return file name for the specified zip entry
ZipEntry . getName String . lastIndexOf String . substring
extract next entry from jar file , creating directories as needed
ZipEntry . getName String . length File . <init> ZipEntry . isDirectory File . getPath File . mkdirs File . getPath File . <init> File . mkdirs File . isDirectory File . exists File . getPath ZipInputStream . cast ZipInputStream . closeEntry InputStream . close ZipEntry . getTime File . setLastModified
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . length String . charAt String . substring String . length String . charAt String . length String . substring Tree . getParent
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . length String . charAt String . substring String . length String . charAt String . substring Tree . getParent
compute the simple file name for a given zip entry
ZipEntry . getName String . length String . charAt String . substring
check whether given jar entry matches package pattern
ZipEntry . getName String . length String . charAt ZipEntry . getName
check whether given jar entry matches package pattern
ZipEntry . getName String . length String . charAt
make sure that the parent of a node is in the collected list as well , and this node is registered as a child of it
ZipEntry . getName String . length String . lastIndexOf String . substring ZipFile . getEntry String . substring
compute the simple file name for a given zip entry
ZipEntry . getName String . length String . lastIndexOf String . substring
create the content object for a zip archive entry
ZipEntry . getName String . length String . substring String . indexOf String . substring Content . setName Content . setComment Content . <unk> Content . <unk> String . substring ZipEntry . isDirectory Content . setName Content . <unk> Date . <init> Content . <unk> Content . <unk> Content . <unk> Content . <unk> Content . <unk> Content . <unk> Content . setComment
return our local name , the name that <unk> us within the directory that contains us
ZipEntry . getName String . length String . substring String . lastIndexOf String . length String . substring
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . length String . substring String . length String . charAt String . substring Tree . getParent
compute the simple file name for a given zip entry
ZipEntry . getName String . length String . substring
extract next entry from jar file , creating directories as needed
ZipEntry . getName String . replace File . <init> File . exists File . getPath File . mkdirs File . getPath File . getParent File . <init> File . isDirectory File . exists File . getPath ZipInputStream . closeEntry ZipInputStream . cast InputStream . close ZipEntry . getMethod ZipEntry . getTime File . setLastModified
extract next entry from jar file , creating directories as needed
ZipEntry . getName String . replace File . <init> File . isDirectory File . getPath File . <init> File . getPath ZipInputStream . instance ZipInputStream . cast ZipInputStream . closeEntry InputStream . close ZipEntry . getTime File . setLastModified
extract compressed directory to given path
ZipEntry . getName String . replace File . <init> File . mkdirs ZipInputStream . <init> StringBuilder . <init> ZipInputStream . getNextEntry ZipEntry . getName String . replace String . contains ZipInputStream . closeEntry File . <init> File . exists ZipInputStream . closeEntry File . <init> File . mkdirs StringBuilder . append FileOutputStream . <init> BufferedOutputStream . <init> BufferedOutputStream . write BufferedOutputStream . close ZipInputStream . closeEntry ZipInputStream . close StringBuilder . append
extract next entry from jar file , creating directories as needed
ZipEntry . getName String . replace File . <init> ZipEntry . isDirectory File . exists File . getPath File . <init> File . mkdirs File . isDirectory File . getPath ZipInputStream . cast ZipInputStream . closeEntry InputStream . close ZipEntry . getMethod ZipEntry . getTime File . setLastModified
extract next entry from jar file , creating directories as needed
ZipEntry . getName String . replace File . <init> ZipEntry . isDirectory File . exists File . getPath File . getParent File . <init> File . exists File . mkdirs File . isDirectory File . getPath ZipInputStream . instance ZipInputStream . closeEntry ZipInputStream . cast InputStream . close ZipEntry . getTime File . setLastModified
copy specified contents of one jar to another without the specified files TODO : it would be useful to be able to keep signature information from signed jar files , can we combine manifests and still have their content signed ?
ZipEntry . getName String . replace List < String > . iterator Iterator < String > . next HashSet < String > . contains ZipEntry . <init> ZipEntry . getTime ZipEntry . setTime ZipOutputStream . putNextEntry ZipOutputStream . closeEntry ZipInputStream . closeEntry HashSet < String > . add
copy specified contents of one jar to another
ZipEntry . getName String . replace List < String > . iterator Iterator < String > . next String . matches HashSet < String > . contains ZipEntry . <init> ZipEntry . getTime ZipEntry . setTime ZipOutputStream . putNextEntry ZipOutputStream . closeEntry ZipInputStream . closeEntry HashSet < String > . add
extract single file into disk
ZipEntry . getName String . split File . <init> File . mkdir File . <init> BufferedOutputStream . <init>
extract single file into disk
ZipEntry . getName String . split File . exists File . <init> File . mkdir BufferedOutputStream . <init>
create if necessary the path from the node parent node to the zip entry zip entry , based on the name of the zip entry , which should contain its absolute path
ZipEntry . getName String . split Node . getNode Node . addNode
create if necessary the path from the node parent node to the zip entry zip entry , based on the name of the zip entry , which should contain its absolute path
ZipEntry . getName String . split Node . getNode ZipEntry . isDirectory Node . addNode
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . endsWith String . lastIndexOf String . substring File . <init> File . isDirectory File . mkdirs SortedSet < String > . add File . <init> FileOutputStream . <init> JarFile . getInputStream InputStream . read FileOutputStream . write InputStream . close FileOutputStream . close
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . endsWith String . lastIndexOf String . substring SortedSet . contains File . <init> File . isDirectory File . exists File . mkdirs SortedSet . add FileOutputStream . <init> ZipFile . getInputStream ZipEntry . isDirectory
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . endsWith String . lastIndexOf String . substring SortedSet < String > . contains File . <init> File . isDirectory File . exists File . mkdirs SortedSet < String > . add File . <init> FileOutputStream . <init> JarFile . getInputStream InputStream . read FileOutputStream . write InputStream . close FileOutputStream . close
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . lastIndexOf String . substring File . <init> File . isDirectory File . exists File . mkdirs SortedSet . add FileOutputStream . <init> ZipFile . getInputStream ZipEntry . isDirectory
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . lastIndexOf String . substring File . <init> File . isDirectory File . exists File . mkdirs SortedSet < String > . add JarFile . getInputStream File . <init> FileOutputStream . <init> InputStream . read FileOutputStream . write InputStream . close FileOutputStream . close
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . lastIndexOf String . substring SortedSet . contains File . <init> SortedSet . add FileOutputStream . <init> ZipFile . getInputStream ZipEntry . isDirectory
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . lastIndexOf String . substring SortedSet . contains File . <init> SortedSet . add FileOutputStream . <init> ZipFile . getInputStream
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . lastIndexOf String . substring SortedSet < String > . contains File . <init> File . exists File . mkdirs SortedSet < String > . add FileOutputStream . <init> ZipFile . getInputStream ZipEntry . isDirectory
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . startsWith String . substring String . lastIndexOf String . substring File . <init> File . mkdirs SortedSet < String > . add File . <init> FileOutputStream . <init> JarFile . getInputStream FileOutputStream . write InputStream . close FileOutputStream . close
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . startsWith String . substring String . lastIndexOf String . substring SortedSet < String > . contains File . <init> File . mkdirs SortedSet < String > . add JarFile . getInputStream File . <init> FileOutputStream . <init> FileOutputStream . write InputStream . close FileOutputStream . close
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring String . startsWith String . substring String . lastIndexOf String . substring SortedSet < String > . contains File . <init> SortedSet < String > . add File . <init> FileOutputStream . <init> JarFile . getInputStream InputStream . read FileOutputStream . write InputStream . close FileOutputStream . close
process one file from the zip , given its name
ZipEntry . getName String . startsWith String . substring ZipEntry . isDirectory String . lastIndexOf String . substring SortedSet . contains File . <init> File . mkdirs SortedSet . add FileOutputStream . <init> ZipFile . getInputStream ZipEntry . isDirectory
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . substring String . charAt String . length String . substring Tree . getParent
process one file from the zip , given its name
ZipEntry . getName String . substring String . endsWith String . lastIndexOf String . substring SortedSet . contains File . <init> File . exists File . isDirectory File . mkdirs SortedSet . add FileOutputStream . <init> ZipFile . getInputStream
process one file from the zip , given its name
ZipEntry . getName String . substring String . endsWith String . lastIndexOf String . substring SortedSet < String > . contains File . <init> File . exists SortedSet < String > . add FileOutputStream . <init> ZipFile . getInputStream ZipEntry . isDirectory
process one file from the zip , given its name
ZipEntry . getName String . substring String . lastIndexOf String . substring File . <init> File . mkdirs ZipFile . getInputStream FileOutputStream . <init> InputStream . read FileOutputStream . write InputStream . close FileOutputStream . close
process one file from the zip , given its name
ZipEntry . getName String . substring String . lastIndexOf String . substring Util . <unk> File . <init> File . exists File . isDirectory File . mkdirs SortedSet . add File . <init> Util . <unk> File . getPath FileOutputStream . <init> ZipFile . getInputStream ZipEntry . isDirectory
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . substring String . length String . charAt String . length String . substring
add a zip entry to this tree according to its pathname :
ZipEntry . getName String . substring String . length String . charAt String . substring Tree . getParent