package com.novoda.downloadmanager;

public final class DownloadBatchIdCreator {

    private DownloadBatchIdCreator() {
        // non-instantiable class
    }

    public static DownloadBatchId createSanitizedFrom(String rawId) {
        String sanitizedBatchId = sanitizeBatchId(rawId);
        return new LiteDownloadBatchId(sanitizedBatchId);
    }

    private static String sanitizeBatchId(String batchIdPath) {
        return batchIdPath.replaceAll("[:\\\\/*?|<>]", "_");
    }
}

@@ -151,24 +151,326 @@
 lass%0A    %7D%0A%0A
+    /**%0A     * Sanitizes the given rawId replacing any of %5B:%5C%5C%5C%5C/*?%7C%3C%3E%5D with an underscore%0A     * before returning an instance of %7B@link DownloadBatchId%7D.%0A     *%0A     * @param rawId to be sanitized before creating %7B@link DownloadBatchId%7D.%0A     * @return an instance of %7B@link DownloadBatchId%7D.%0A     */%0A
     public s

Add javadoc for DownloadBatchIdCreator.