@Test public void testParseExtension() { assertEquals("png", WARCIndexer.parseExtension("http: assertEquals("png", WARCIndexer.parseExtension("http: }
protected static String parseExtension(String path) { if (path != null && path.indexOf(".") != -1) { String ext = path.substring(path.lastIndexOf(".")); ext = ext.toLowerCase(); ext = ext.replaceAll("[^0-9a-z]", ""); return ext; } return null; }
WARCIndexer { protected static String parseExtension(String path) { if (path != null && path.indexOf(".") != -1) { String ext = path.substring(path.lastIndexOf(".")); ext = ext.toLowerCase(); ext = ext.replaceAll("[^0-9a-z]", ""); return ext; } return null; } }
WARCIndexer { protected static String parseExtension(String path) { if (path != null && path.indexOf(".") != -1) { String ext = path.substring(path.lastIndexOf(".")); ext = ext.toLowerCase(); ext = ext.replaceAll("[^0-9a-z]", ""); return ext; } return null; } WARCIndexer();  WARCIndexer( Config conf ); }
WARCIndexer { protected static String parseExtension(String path) { if (path != null && path.indexOf(".") != -1) { String ext = path.substring(path.lastIndexOf(".")); ext = ext.toLowerCase(); ext = ext.replaceAll("[^0-9a-z]", ""); return ext; } return null; } WARCIndexer();  WARCIndexer( Config conf ); void setAnnotations(Annotations ann, SurtPrefixSet openAccessSurts); boolean isCheckSolrForDuplicates(); void setCheckSolrForDuplicates(boolean checkSolrForDuplicates); SolrRecord extract( String archiveName, ArchiveRecord record ); SolrRecord extract( String archiveName, ArchiveRecord record, boolean isTextIncluded ); static Date getWaybackDate( String timestamp ); static String extractYear( String timestamp ); }
WARCIndexer { protected static String parseExtension(String path) { if (path != null && path.indexOf(".") != -1) { String ext = path.substring(path.lastIndexOf(".")); ext = ext.toLowerCase(); ext = ext.replaceAll("[^0-9a-z]", ""); return ext; } return null; } WARCIndexer();  WARCIndexer( Config conf ); void setAnnotations(Annotations ann, SurtPrefixSet openAccessSurts); boolean isCheckSolrForDuplicates(); void setCheckSolrForDuplicates(boolean checkSolrForDuplicates); SolrRecord extract( String archiveName, ArchiveRecord record ); SolrRecord extract( String archiveName, ArchiveRecord record, boolean isTextIncluded ); static Date getWaybackDate( String timestamp ); static String extractYear( String timestamp ); static final boolean CANONICALISE_HOST; static SimpleDateFormat formatter; }