Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for newInputStream (0.13 sec)

  1. src/main/java/org/codelibs/fess/app/web/api/admin/log/ApiAdminLogAction.java

                final Path path = Paths.get(logFilePath, filename);
                return asStream(filename).contentTypeOctetStream().stream(out -> {
                    try (InputStream in = Files.newInputStream(path)) {
                        out.write(in);
                    }
                });
            }
            return StreamResponse.asEmptyBody();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

            return result;
        }
    
        static String sha1(Path path) throws NoSuchAlgorithmException, IOException {
            MessageDigest md = MessageDigest.getInstance("SHA-1");
            try (InputStream fis = Files.newInputStream(path)) {
                byte[] buffer = new byte[SHA1_BUFFER_SIZE];
                int read;
                while ((read = fis.read(buffer)) != -1) {
                    md.update(buffer, 0, read);
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt

                "org/gradle/fileevents"
            )
    
            @Throws(IOException::class)
            private
            fun openJarFile(file: Path): ZipInputStream {
                return ZipInputStream(Files.newInputStream(file))
            }
        }
    
        /**
         * Implementation code that can be unit-tested.
         *
         * <p>Visible for testing.</p>
         */
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Oct 11 19:14:16 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelReader.java

        }
    
        @Override
        public Model read(Path path, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(path, "path cannot be null");
    
            try (InputStream in = Files.newInputStream(path)) {
                Model model = read(in, path, options);
    
                model.setPomPath(path);
    
                return model;
            }
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

          assertThrows(IOException.class, () -> failSource.copyTo(okSink));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if source.newInputStream() throws).
          assertTrue(
              "stream not closed when copying from source with option: " + option,
              !okSink.wasStreamOpened() || okSink.wasStreamClosed());
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ByteSinkTest.java

          assertThrows(IOException.class, () -> failSource.copyTo(okSink));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if source.newInputStream() throws).
          assertTrue(
              "stream not closed when copying from source with option: " + option,
              !okSink.wasStreamOpened() || okSink.wasStreamClosed());
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsReader.java

        @Override
        public PersistedToolchains read(File input, Map<String, ?> options) throws IOException {
            Objects.requireNonNull(input, "input cannot be null");
    
            try (InputStream in = Files.newInputStream(input.toPath())) {
                InputSource source = new InputSource(input.toString());
                return new PersistedToolchains(new MavenToolchainsStaxReader().read(in, isStrict(options), source));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

            final String themeName = getThemeName(artifact);
            if (logger.isDebugEnabled()) {
                logger.debug("Theme: {}", themeName);
            }
            try (ZipInputStream zis = new ZipInputStream(Files.newInputStream(jarPath))) {
                ZipEntry entry;
                while ((entry = zis.getNextEntry()) != null) {
                    if (!entry.isDirectory()) {
                        final String[] names = StreamUtil.split(entry.getName(), "/")
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

                try (FileSystem fs = FileSystems.newFileSystem(jarFile.toPath(), ClassLoader.getSystemClassLoader())) {
                    final Path xmlPath = fs.getPath("fess_ds++.xml");
                    try (InputStream is = Files.newInputStream(xmlPath)) {
                        final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                        factory.setFeature(org.codelibs.fess.crawler.Constants.FEATURE_SECURE_PROCESSING, true);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenMetadata.java

        static Metadata read(Path metadataPath) throws RepositoryException {
            if (!Files.exists(metadataPath)) {
                return new Metadata();
            }
    
            try (InputStream input = Files.newInputStream(metadataPath)) {
                return new Metadata(new MetadataStaxReader().read(input, false));
            } catch (IOException | XMLStreamException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top