Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getFilePath (0.11 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/FileTransformerTest.java

            url = "http://www.example.com/action?a=1";
            assertEquals("http_CLN_/www.example.com/action_QUEST_a=1", fileTransformer.getFilePath(url));
    
            url = "http://www.example.com/action?a=1&b=2";
            assertEquals("http_CLN_/www.example.com/action_QUEST_a=1_AMP_b=2", fileTransformer.getFilePath(url));
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java

            resultData.setTransformerName(getName());
    
            initBaseDir();
    
            final String url = responseData.getUrl();
            final String path = getFilePath(url);
    
            synchronized (this) {
    
                final File file = createFile(path);
    
                try (final InputStream is = responseData.getResponseBody(); final OutputStream os = new FileOutputStream(file);) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top