Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHarbo committed Jul 24, 2023
1 parent 9096778 commit a35ec05
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
import dk.kb.netarchivesuite.solrwayback.service.dto.WarcMetadataFromSolr;
import dk.kb.netarchivesuite.solrwayback.solr.SRequest;
import dk.kb.netarchivesuite.solrwayback.solr.SolrGenericStreaming;
import dk.kb.netarchivesuite.solrwayback.util.SolrUtils;
import org.apache.cxf.helpers.IOUtils;
import org.apache.solr.common.SolrDocument;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.io.OutputStream;
import java.text.Normalizer;
import java.util.Arrays;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
Expand Down Expand Up @@ -57,16 +55,6 @@ public void getStreamingOutputWithZipOfContent(String query,
log.info("Zip export has completed. {} warc entries with the contentType: '{}' have been streamed, zipped and delivered.", streamedDocs, contentType);
}

/**
* Normalize content type.
* @param contentType string to normalize.
* @return normalized contentType string.
*/
private String normalizeContentType(String contentType) {
String normalizedContentType = Normalizer.normalize(contentType, Normalizer.Form.NFD);
return normalizedContentType.replaceAll("[^\\x00-\\x7F]", "");
}

/**
* Extract metadata for a WARC entry from a Solr Document.
* The method extracts, the ID, mimetype and fileextension for the WARC entry.
Expand Down

0 comments on commit a35ec05

Please sign in to comment.