- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for getInputStream (0.05 sec)
-
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
// First read try (InputStream stream1 = cache.getInputStream()) { byte[] buffer1 = new byte[1024]; int bytesRead1 = stream1.read(buffer1); assertEquals(testContent, new String(buffer1, 0, bytesRead1, "UTF-8")); } // Second read - should work independently try (InputStream stream2 = cache.getInputStream()) { byte[] buffer2 = new byte[1024];
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
// Verify content in both files try (InputStream in = sourceFile.getInputStream()) { String sourceContent = new String(in.readAllBytes(), "UTF-8"); assertEquals(content, sourceContent, "Source content should remain unchanged"); } try (InputStream in = targetFile.getInputStream()) { String targetContent = new String(in.readAllBytes(), "UTF-8");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
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 Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Aug 29 12:46:27 UTC 2025 - 6.8K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
try { server .url("/a") .toUrl() .openConnection() .getInputStream() fail<Any>() } catch (expected: IOException) { } server .url("/b") .toUrl() .openConnection() .getInputStream() // Should succeed. } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentCache.java
* try (ContentCache cache = new ContentCache(data)) { * InputStream inputStream = cache.getInputStream(); * // Read from inputStream * } * * // File-based caching * File file = new File("example.txt"); * try (ContentCache cache = new ContentCache(file)) { * InputStream inputStream = cache.getInputStream(); * // Read from inputStream * } * } * </pre> * */
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 3.8K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
try { server .url("/a") .toUrl() .openConnection() .getInputStream() fail<Unit>() } catch (expected: IOException) { // Expected. } server .url("/b") .toUrl() .openConnection() .getInputStream() // Should succeed. } @Test fun clearDispatcherQueue() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K 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 Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 18:51:29 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtSocket.java
* * @return the NetBIOS address */ public NbtAddress getNbtAddress() { return address; } @Override public InputStream getInputStream() throws IOException { return new SocketInputStream(super.getInputStream()); } @Override public OutputStream getOutputStream() throws IOException { return new SocketOutputStream(super.getOutputStream()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/zip/ZipFileUtil.java
* @return An input stream for reading the contents of the specified Zip file entry. */ public static InputStream getInputStream(final ZipFile file, final ZipEntry entry) { assertArgumentNotNull("file", file); assertArgumentNotNull("entry", entry); try { return file.getInputStream(entry); } catch (final IOException e) { throw new IORuntimeException(e); } }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
return connection.getPermission(); } @Override public InputStream getInputStream() throws IOException { try { handshake(); } catch (final IOException ex) {} return connection.getInputStream(); } @Override public OutputStream getOutputStream() throws IOException { try { connect();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0)