Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for contentCached (0.19 sec)

  1. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/CachingScriptSourceTest.groovy

            def scriptSource = Stub(ScriptSource)
            def resource = Stub(TextResource)
    
            scriptSource.resource >> resource
            resource.contentCached >> false
    
            expect:
            def wrapper = CachingScriptSource.of(scriptSource)
            wrapper instanceof CachingScriptSource
            wrapper.source == scriptSource
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 16 20:50:41 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  2. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/StringTextResourceTest.groovy

            resource.exists
            !resource.hasEmptyContent
            resource.contentCached
        }
    
        def emptyStringResourceHasEmptyContent() {
            expect:
            def resource = new StringTextResource('displayname', '')
            resource.text == ''
            resource.exists
            resource.hasEmptyContent
            resource.contentCached
        }
    
        def resourceHasNoIdentity() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/curl/io/ContentCache.java

    import java.util.logging.Logger;
    
    public class ContentCache implements Closeable {
    
        protected static final Logger logger = Logger.getLogger(ContentCache.class.getName());
    
        private final byte[] data;
    
        private final File file;
    
        public ContentCache(final byte[] data) {
            this.data = data;
            this.file = null;
        }
    
        public ContentCache(final File file) {
            this.data = 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)
  4. src/main/java/org/codelibs/curl/CurlResponse.java

    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.function.Function;
    
    import org.codelibs.curl.io.ContentCache;
    
    public class CurlResponse implements Closeable {
    
        private int httpStatusCode;
    
        private ContentCache contentCache;
    
        private String encoding;
    
        private Exception contentException;
    
        private Map<String, List<String>> headers;
    
        @Override
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultFileContentCacheFactory.java

            private final IndexedCache<HashCode, V> contentCache;
            private final Calculator<? extends V> calculator;
    
            DefaultFileContentCache(String name, FileSystemAccess fileSystemAccess, IndexedCache<HashCode, V> contentCache, Calculator<? extends V> calculator) {
                this.name = name;
                this.fileSystemAccess = fileSystemAccess;
                this.contentCache = contentCache;
                this.calculator = calculator;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/curl/CurlRequest.java

                    }
                    dfos.flush();
                    final ContentCache contentCache;
                    logger.fine(() -> "Response in " + (dfos.isInMemory() ? "Memory" : "File"));
                    if (dfos.isInMemory()) {
                        contentCache = new ContentCache(dfos.getData());
                    } else {
                        contentCache = new ContentCache(dfos.getFile());
                    }
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Sun Feb 12 12:21:25 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top