Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 85 for getInputStream (0.19 sec)

  1. 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() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. 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
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  3. 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() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PluginEntries.kt

        JarFile(jar, false).use { jarFile ->
            jarFile.entries().asSequence().filter {
                isGradlePluginPropertiesFile(it)
            }.map { pluginEntry ->
                val pluginProperties = jarFile.getInputStream(pluginEntry).use { Properties().apply { load(it) } }
                val id = pluginEntry.name.substringAfterLast("/").substringBeforeLast(".properties")
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Sat Sep 30 16:17:27 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                    logger.debug("Thumbnail Command: {}", cmdList);
                }
    
                final Process p = pb.start();
    
                final InputStreamThread ist = new InputStreamThread(p.getInputStream(), Charset.defaultCharset(), 0, s -> {
                    if (logger.isDebugEnabled()) {
                        logger.debug(s);
                    }
                });
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  6. 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 {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 2K bytes
    - Viewed (0)
  7. maven-builder-support/src/main/java/org/apache/maven/building/UrlSource.java

         */
        public UrlSource(URL url) {
            this.url = Objects.requireNonNull(url, "url cannot be null");
            this.hashCode = Objects.hashCode(url);
        }
    
        @Override
        public InputStream getInputStream() throws IOException {
            return url.openStream();
        }
    
        @Override
        public String getLocation() {
            return url.toString();
        }
    
        /**
         * Gets the URL of this source.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSettingsXmlFactory.java

        @Override
        public Settings read(@Nonnull XmlReaderRequest request) throws XmlReaderException {
            nonNull(request, "request");
            Reader reader = request.getReader();
            InputStream inputStream = request.getInputStream();
            if (reader == null && inputStream == null) {
                throw new IllegalArgumentException("reader or inputStream must be non null");
            }
            try {
                InputSource source = null;
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 07 20:05:02 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/curl/io/ContentCache.java

            this.file = file;
        }
    
        @Override
        public void close() throws IOException {
            if (file != null) {
                Files.delete(file.toPath());
            }
        }
    
        public InputStream getInputStream() throws IOException {
            if (file != null) {
                return new FileInputStream(file);
            }
            return new ByteArrayInputStream(data);
        }
    Java
    - Registered: Thu May 09 15:34:10 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 1.6K bytes
    - Viewed (1)
  10. 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())) {
    Java
    - Registered: Thu May 09 15:34:10 GMT 2024
    - Last Modified: Sun Feb 12 12:21:25 GMT 2023
    - 12.3K bytes
    - Viewed (0)
Back to top