Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for closeEntry (0.07 seconds)

  1. src/main/java/org/codelibs/core/zip/ZipInputStreamUtil.java

         * <p>
         * If {@link ZipInputStream#closeEntry()} throws an exception, an error message is logged.
         * The exception is not rethrown.
         * </p>
         *
         * @param zis
         *            {@link ZipInputStream}. Must not be {@literal null}.
         * @see ZipInputStream#closeEntry()
         */
        public static void closeEntry(final ZipInputStream zis) {
            assertArgumentNotNull("zis", zis);
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt

        val entry = ZipEntry(entryName)
        entry.time = zipEntryBaseTimestamp
        putNextEntry(entry)
        BufferedInputStream(FileInputStream(sourceFile)).use { inputStream -> inputStream.copyTo(this) }
        closeEntry()
    }
    
    
    fun File.getClassSuperTypes(): Set<String> {
        if (!path.endsWith(".class")) {
            throw IllegalArgumentException("Not a class file: $path")
        }
        inputStream().use {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Sat Mar 22 03:48:38 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

                zos.write("<html>test</html>".getBytes());
                zos.closeEntry();
    
                // Add CSS file
                ZipEntry cssEntry = new ZipEntry("css/style.css");
                zos.putNextEntry(cssEntry);
                zos.write("body { color: red; }".getBytes());
                zos.closeEntry();
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  4. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

                    val zipEntry = ZipEntry(relativePath)
                    try {
                        zipOutput.putNextEntry(zipEntry)
                        Files.copy(file.toPath(), zipOutput)
                        zipOutput.closeEntry()
                    } catch (e: IOException) {
                        throw GradleException("Error copying file contents to zip. File: " + file.toPath(), e)
                    }
                }
            }
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Feb 11 11:05:07 GMT 2026
    - 14.3K bytes
    - Click Count (1)
  5. build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt

                                jarStream.putNextEntry(JarEntry(entryName))
                                Files.copy(file, jarStream)
                                jarStream.closeEntry()
                                return FileVisitResult.CONTINUE
                            }
                        })
                    }
                }
            }
            return sequenceOf(outputPath)
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Mar 25 08:50:34 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

                        handler.processClass(packageName, shortClassName);
                    }
                } finally {
                    ZipInputStreamUtil.closeEntry(zipInputStream);
                }
            }
        }
    
        /**
         * Traverses classes contained in the file system.
         *
         * @param dir the base directory
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

                        @Override
                        public void close() throws IOException {
                            ZipInputStreamUtil.closeEntry(zipInputStream);
                        }
                    });
                }
            }
        }
    
        /**
         * Traverses resources contained in the file system.
         *
         * @param rootDir
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          for (String entry : entries) {
            jarOut.putNextEntry(new ZipEntry(entry));
            Resources.copy(ClassPathTest.class.getResource(entry), jarOut);
            jarOut.closeEntry();
          }
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      private static Manifest manifest(String content) throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 23.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                JarEntry entry = new JarEntry("fess_ds++.xml");
                jos.putNextEntry(entry);
                jos.write(xmlContent.getBytes());
                jos.closeEntry();
            }
        }
    
        // Test DataStore implementation for testing
        private static class TestDataStore extends AbstractDataStore {
            private String name;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/core/io/TraversalUtil.java

                    ZipEntry entry = null;
                    while ((entry = ZipInputStreamUtil.getNextEntry(zis)) != null) {
                        entryNames.add(entry.getName());
                        ZipInputStreamUtil.closeEntry(zis);
                    }
                } finally {
                    CloseableUtil.close(zis);
                }
            }
    
            @Override
            public boolean isExistClass(final String className) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 18.6K bytes
    - Click Count (0)
Back to Top