- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 84 for getInputStream (0.2 sec)
-
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 Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K 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); } /** * Returns the underlying system process. * * @return the wrapped process */ public Process getProcess() {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 2.4K 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: Sat Dec 20 13:44:44 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: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/jar/JarFileUtil.java
* @return the input stream to read the entry */ public static InputStream getInputStream(final JarFile file, final ZipEntry entry) { assertArgumentNotNull("file", file); assertArgumentNotNull("entry", entry); try { return file.getInputStream(entry); } catch (final IOException e) { throw new IORuntimeException(e); } }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.9K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/StringSourceTest.java
class StringSourceTest { @Test void testGetInputStream() throws Exception { StringSource source = new StringSource("Hello World!"); try (InputStream is = source.getInputStream(); Scanner scanner = new Scanner(is)) { assertEquals("Hello World!", scanner.nextLine()); } } @Test void testGetLocation() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java
} /** * Test that getInputStream() attempts to connect if not connected. */ public void test_getInputStream_autoConnect() throws Exception { URL url = new URL("storage://mybucket/object.txt"); Handler handler = new Handler(); Handler.StorageURLConnection conn = (Handler.StorageURLConnection) handler.openConnection(url);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 14.4K bytes - Viewed (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/Source.java
* * @return A byte stream to the source contents, never {@code null}. * @throws IOException in case of IO issue */ InputStream getInputStream() throws IOException; /** * Provides a user-friendly hint about the location of the source. This could be a local file path, a URI or just anRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jan 15 18:51:29 UTC 2025 - 1.8K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGenerator.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Mar 25 09:45:07 UTC 2025 - 7.8K bytes - Viewed (0)