- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 298 for InputStream (0.09 seconds)
-
compat/maven-settings/src/main/java/org/apache/maven/settings/io/xpp3/SettingsXpp3Reader.java
} } public Settings read(InputStream in, boolean strict) throws IOException, XmlPullParserException { try { return new Settings(delegate.read(in, strict, null)); } catch (XMLStreamException e) { throw new XmlPullParserException(e.getMessage(), null, e); } } public Settings read(InputStream in) throws IOException, XmlPullParserException { try {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 4K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java
String content = "test content"; Files.writeString(testFile, content); Source source = Sources.fromPath(testFile); try (InputStream inputStream = source.openStream()) { String readContent = new String(inputStream.readAllBytes()); assertEquals(content, readContent); } } @Test void testNullHandling() {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Sep 29 14:45:25 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/SmbResourceTest.java
when(mockResource.openInputStream(anyInt(), anyInt(), anyInt())).thenReturn(mockInputStream); // When InputStream is1 = mockResource.openInputStream(); InputStream is2 = mockResource.openInputStream(1); InputStream is3 = mockResource.openInputStream(1, 2, 3); // Then assertNotNull(is1, "Default input stream should not be null");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
src/main/java/org/codelibs/core/jar/JarInputStreamUtil.java
* @return {@link JarInputStream} * @throws IORuntimeException if an {@link IOException} occurs * @see JarInputStream#JarInputStream(InputStream) */ public static JarInputStream create(final InputStream is) throws IORuntimeException { assertArgumentNotNull("is", is); try { return new JarInputStream(is); } catch (final IOException e) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/webapp/WebXmlTest.java
factory.setNamespaceAware(true); final DocumentBuilder builder = factory.newDocumentBuilder(); try (InputStream is = getClass().getClassLoader().getResourceAsStream("../webapp/WEB-INF/web.xml")) { if (is == null) { try (InputStream is2 = Thread.currentThread().getContextClassLoader().getResourceAsStream("web.xml")) { if (is2 != null) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 09:08:35 GMT 2026 - 3.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/TestInputStream.java
import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import org.jspecify.annotations.NullUnmarked; /** * @author Colin Decker */ @NullUnmarked public class TestInputStream extends FilterInputStream { private final ImmutableSet<TestOption> options; private boolean closed; public TestInputStream(InputStream in, TestOption... options) throws IOException {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java
throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadStopwordsFile(GLOBAL)); return null; }); try (InputStream inputStream = form.stopwordsFile.getInputStream()) { file.update(inputStream); } catch (final IOException e) { logger.warn("Failed to process a request.", e);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 9.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/logging/Slf4jConfigurationFactory.java
URL resource = resources.nextElement(); try { InputStream is = resource.openStream(); final Properties properties = new Properties(); if (is != null) { try (InputStream in = is) { properties.load(in); } }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 08 08:49:11 GMT 2024 - 3.1K bytes - Click Count (0) -
docs/features/https.md
* file that gets bundled with the application. */ private fun trustedCertificatesInputStream(): InputStream { ... // Full source omitted. See sample. } private fun trustManagerForCertificates(inputStream: InputStream): X509TrustManager { ... // Full source omitted. See sample. } ``` === ":material-language-java: Java" ```javaCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 10.5K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteSink.java
} } /** * Writes all the bytes from the given {@code InputStream} to this sink. Does not close {@code * input}. * * @return the number of bytes written * @throws IOException if an I/O occurs while reading from {@code input} or writing to this sink */ @CanIgnoreReturnValue public long writeFrom(InputStream input) throws IOException { checkNotNull(input);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 4.9K bytes - Click Count (0)