MCPcopy Create free account
hub / github.com/apache/nutch / getExtension

Method getExtension

src/java/org/apache/nutch/parse/ParserFactory.java:418–425  ·  view source on GitHub ↗

Get an extension from its id and supported content-type.

(Extension[] list, String id, String type)

Source from the content-addressed store, hash-verified

416
417 /** Get an extension from its id and supported content-type. */
418 private Extension getExtension(Extension[] list, String id, String type) {
419 for (int i = 0; i < list.length; i++) {
420 if (match(list[i], id, type)) {
421 return list[i];
422 }
423 }
424 return null;
425 }
426
427 private Extension getExtension(Extension[] list, String id) {
428 for (int i = 0; i < list.length; i++) {

Callers 3

getParserByIdMethod · 0.95
matchExtensionsMethod · 0.95
getExtensionFromAliasMethod · 0.95

Calls 3

matchMethod · 0.95
equalsMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected