- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for newInputStream (0.24 sec)
-
maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java
Paths.get("src/test/resources/projects/transform/after.pom").toAbsolutePath(); Path tempFile = Files.createTempFile("", ".pom"); Files.delete(tempFile); try (InputStream expected = Files.newInputStream(beforePomFile)) { Model model = new Model(new MavenStaxReader().read(expected)); MavenProject project = new MavenProject(model); project.setOriginalModel(model);
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Tue Dec 05 09:23:26 GMT 2023 - 4.3K bytes - Viewed (0) -
apache-maven/src/test/java/org/apache/maven/settings/GlobalSettingsTest.java
File globalSettingsFile = new File(basedir, "src/assembly/maven/conf/settings.xml"); assertTrue(globalSettingsFile.isFile(), globalSettingsFile.getAbsolutePath()); try (InputStream is = Files.newInputStream(globalSettingsFile.toPath())) { new SettingsStaxReader().read(is, true, new InputSource(globalSettingsFile.getAbsolutePath())); } }
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 1.8K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomBuilderTest.java
@Test void testTrivialConsumer() throws Exception { MavenProject project; Path file = Paths.get("src/test/resources/consumer/trivial/child/pom.xml"); try (InputStream inputStream = Files.newInputStream(file)) { org.apache.maven.model.Model model = new org.apache.maven.model.Model(new MavenStaxReader().read(inputStream)); project = new MavenProject(model);
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 3.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/PathSource.java
} @Override public Path getPath() { return path; } @Override public InputStream openStream() throws IOException { return Files.newInputStream(path); } @Override public String getLocation() { return location; } @Override public Source resolve(String relative) {
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 2.3K bytes - Viewed (0) -
maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java
this.hashCode = Objects.hash(path); } @Override public InputStream getInputStream() throws IOException { return Files.newInputStream(path); } @Override public String getLocation() { return path.toString(); } /** * Gets the file of this source. *
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Mon Feb 26 17:04:44 GMT 2024 - 2.9K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/DefaultMetadataReader.java
public Metadata read(File input, Map<String, ?> options) throws IOException { Objects.requireNonNull(input, "input cannot be null"); return read(Files.newInputStream(input.toPath()), options); } public Metadata read(Reader input, Map<String, ?> options) throws IOException { Objects.requireNonNull(input, "input cannot be null"); try (Reader in = input) {
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 2.9K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptorBuilder.java
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 4.2K bytes - Viewed (0) -
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()); } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 3.7K bytes - Viewed (0) -
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); } }
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Wed Jan 10 12:55:54 GMT 2024 - 5.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java
final Path path = Paths.get(logFilePath, filename); return asStream(filename).contentTypeOctetStream().stream(out -> { try (InputStream in = Files.newInputStream(path)) { out.write(in); } }); } throwValidationError(messages -> messages.addErrorsCouldNotFindLogFile(GLOBAL, filename), this::asIndexHtml);
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4.7K bytes - Viewed (0)