- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for getInputStream (0.12 sec)
-
src/test/java/jcifs/tests/ReadWriteTest.java
// this should truncate try ( OutputStream os = f.openOutputStream() ) { writeRandom(4096, 1024, os); } try ( InputStream is = f.getInputStream() ) { verifyRandom(4096, 1024, true, is); } } finally { f.delete(); } } } @Test
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 13.2K 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) -
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) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
public Permission getPermission() throws IOException { return connection.getPermission(); } public InputStream getInputStream() throws IOException { try { handshake(); } catch (IOException ex) { } return connection.getInputStream(); } public OutputStream getOutputStream() throws IOException { try { connect();
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 20.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/mylasta/direction/sponsor/FessMultipartRequestHandler.java
@Override public byte[] getFileData() throws IOException { return fileItem.get(); } @Override public InputStream getInputStream() throws IOException { return fileItem.getInputStream(); } @Override public String getContentType() { return fileItem.getContentType(); } @Override
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Wed Oct 23 13:27:21 UTC 2024 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/RandomAccessFileTest.java
assertEquals(l + off, raf.getFilePointer()); raf.setLength(raf.getFilePointer() + l); } try ( InputStream is = f.getInputStream() ) { verifyZero(off, is); ReadWriteTest.verifyRandom(bufSize, l, false, is); verifyZero(l, is); } } finally {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 11.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 10.8K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
if (GZIP.equals(con.getContentEncoding())) { return new GZIPInputStream(con.getInputStream()); } else { return con.getInputStream(); } } else if ("head".equalsIgnoreCase(con.getRequestMethod())) {
Registered: Thu Oct 31 02:32:13 UTC 2024 - Last Modified: Sun Feb 12 12:21:25 UTC 2023 - 12.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java
verifyToken(() -> uploadpage(form.dictId)); return stopwordsService.getStopwordsFile(form.dictId).map(file -> { try (InputStream inputStream = form.stopwordsFile.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 - 16.7K bytes - Viewed (0)