org.apache.nutch.util

## Class DumpFileUtil

- java.lang.Object
- - org.apache.nutch.util.DumpFileUtil

-     public class DumpFileUtil
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DumpFileUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `createFileName(java.lang.String md5, java.lang.String fileBaseName, java.lang.String fileExtension)`
    `static java.lang.String` | `createFileNameFromUrl(java.lang.String basePath, java.lang.String reverseKey, java.lang.String urlString, java.lang.String epochScrapeTime, java.lang.String fileExtension, boolean makeDir)`
    `static java.lang.String` | `createTwoLevelsDirectory(java.lang.String basePath, java.lang.String md5)`
    `static java.lang.String` | `createTwoLevelsDirectory(java.lang.String basePath, java.lang.String md5, boolean makeDir)`
    `static java.lang.String` | `displayFileTypes(java.util.Map<java.lang.String,java.lang.Integer> typeCounts, java.util.Map<java.lang.String,java.lang.Integer> filteredCounts)`
    `static java.lang.String` | `getUrlMD5(java.lang.String url)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DumpFileUtil

          public DumpFileUtil()

  - ### Method Detail

    - #### getUrlMD5

          public static java.lang.String getUrlMD5(java.lang.String url)

    - #### createTwoLevelsDirectory

          public static java.lang.String createTwoLevelsDirectory(java.lang.String basePath,
                                                                  java.lang.String md5,
                                                                  boolean makeDir)

    - #### createTwoLevelsDirectory

          public static java.lang.String createTwoLevelsDirectory(java.lang.String basePath,
                                                                  java.lang.String md5)

    - #### createFileName

          public static java.lang.String createFileName(java.lang.String md5,
                                                        java.lang.String fileBaseName,
                                                        java.lang.String fileExtension)

    - #### createFileNameFromUrl

          public static java.lang.String createFileNameFromUrl(java.lang.String basePath,
                                                               java.lang.String reverseKey,
                                                               java.lang.String urlString,
                                                               java.lang.String epochScrapeTime,
                                                               java.lang.String fileExtension,
                                                               boolean makeDir)

    - #### displayFileTypes

          public static java.lang.String displayFileTypes(java.util.Map<java.lang.String,java.lang.Integer> typeCounts,
                                                          java.util.Map<java.lang.String,java.lang.Integer> filteredCounts)

Copyright © 2019 The Apache Software Foundation