Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for closest (0.04 sec)

  1. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

        }
    
        @Override
        public File getFile() {
            done = true;
            return super.getFile();
        }
    
        @Override
        public void close() throws IOException {
            try {
                super.close();
            } finally {
                if (!isInMemory() && !done) {
                    final File file = super.getFile();
                    if (file != null) {
                        try {
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/curl/io/ContentCache.java

            this.data = data;
            this.file = null;
        }
    
        public ContentCache(final File file) {
            this.data = null;
            this.file = file;
        }
    
        @Override
        public void close() throws IOException {
            if (file != null) {
                Files.delete(file.toPath());
            }
        }
    
        public InputStream getInputStream() throws IOException {
            if (file != null) {
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

            req.execute(res -> {
                logger.info("Processing request. Number of temp files: " + countTmpFiles());
            }, e -> {});
            long after = countTmpFiles();
            logger.info("After close response. Number of temp files: " + after);
    
            // ## Assert ##
            assertEquals(before, after);
        }
    
        private long countTmpFiles() {
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

     * <p>Path types are often exclusive. For example, a dependency should not be both on the Java class-path
     * and on the Java module-path.</p>
     *
     * <h2>Relationship with Java compiler standard location</h2>
     * This enumeration is closely related to the {@link JavaFileManager.Location} enumerations.
     * A difference is that the latter enumerates input and output files, while {@code JavaPathType}
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4 });
            assertFalse(cos.done);
            assertTrue(cos.isInMemory());
            cos.close();
            assertFalse(cos.done);
        }
    
        @Test
        public void inFile() throws IOException {
            ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/curl/CurlResponse.java

        private String encoding;
    
        private Exception contentException;
    
        private Map<String, List<String>> headers;
    
        @Override
        public void close() throws IOException {
            if (contentCache != null) {
                contentCache.close();
            }
        }
    
        public <T> T getContent(final Function<CurlResponse, T> parser) {
            return parser.apply(this);
        }
    
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         * defined precedence onto each other to achieve proper precedence. Precedence is defined as:
         * <ul>
         *     <li>System properties (lowest precedence)</li>
         *     <li>Project properties (optional)</li>
         *     <li>User properties (highest precedence)</li>
         * </ul>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top