- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for getInputStream (0.15 sec)
-
api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlReaderRequest.java
@Immutable public interface XmlReaderRequest { @Nullable Path getPath(); @Nullable Path getRootDirectory(); @Nullable URL getURL(); @Nullable InputStream getInputStream(); @Nullable Reader getReader(); @Nullable Transformer getTransformer(); boolean isStrict(); @Nullable String getModelId(); @Nullable
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Jul 09 12:10:26 UTC 2024 - 6.8K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
server.enqueue(MockResponse()) try { server.url("/a").toUrl().openConnection().getInputStream() fail<Unit>() } catch (expected: IOException) { // Expected. } server.url("/b").toUrl().openConnection().getInputStream() // Should succeed. } @Test fun clearDispatcherQueue() { server.enqueue(MockResponse(body = "A"))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/JobProcess.java
} public JobProcess(final Process process, final int bufferSize, final Consumer<String> outputCallback) { this.process = process; inputStreamThread = new InputStreamThread(process.getInputStream(), Constants.CHARSET_UTF_8, bufferSize, outputCallback); } public Process getProcess() { return process; } public InputStreamThread getInputStreamThread() {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.4K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
server.enqueue(MockResponse()) try { server.url("/a").toUrl().openConnection().getInputStream() fail<Any>() } catch (expected: IOException) { } server.url("/b").toUrl().openConnection().getInputStream() // Should succeed. } /** * Throttle the request body by sleeping 500ms after every 3 bytes. With a 6-byte request, this
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.9K bytes - Viewed (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java
this.location = (location != null) ? location : "(memory)"; this.hashCode = this.content.hashCode(); } @Override public InputStream getInputStream() throws IOException { return new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)); } @Override public String getLocation() { return location; } /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.9K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/UrlSourceTest.java
void testGetInputStream() throws Exception { URL txtFile = new File("target/test-classes/source.txt").toURI().toURL(); UrlSource source = new UrlSource(txtFile); try (InputStream is = source.getInputStream(); Scanner scanner = new Scanner(is)) { assertEquals("Hello World!", scanner.nextLine()); } } @Test void testGetLocation() throws Exception {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java
@Test void testGetInputStream() throws Exception { File txtFile = new File("target/test-classes/source.txt"); FileSource source = new FileSource(txtFile); try (InputStream is = source.getInputStream(); Scanner scanner = new Scanner(is)) { assertEquals("Hello World!", scanner.nextLine()); } } @Test void testGetLocation() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
} else { throw new CurlException("The content does not exist."); } } return contentCache.getInputStream(); } public void setContentCache(final ContentCache contentCache) { this.contentCache = contentCache; } public int getHttpStatusCode() { return httpStatusCode; }
Registered: Thu Oct 31 02:32:13 UTC 2024 - Last Modified: Mon Nov 14 21:05:19 UTC 2022 - 4K bytes - Viewed (0) -
src/test/java/jcifs/tests/FileOperationsTest.java
assertTrue(f.exists()); assertEquals(f.length(), t.length()); assertEquals(f.getAttributes(), t.getAttributes()); try ( InputStream is = t.getInputStream() ) { ReadWriteTest.verifyRandom(bufSize, length, is); } } finally { d1.delete(); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:17:59 UTC 2023 - 16.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java
throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL)); return null; }); try (InputStream inputStream = form.protwordsFile.getInputStream()) { file.update(inputStream); } catch (final IOException e) { logger.warn("Failed to process a request.", e);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.2K bytes - Viewed (0)