private MatchFormatter getFormatter(Match<Object, File> match) { for (MatchFormatter formatter : formatters.values()) { if (formatter.canFormat(match)) { return formatter; } } return defaultFormatter; }
@Override protected String doInBackground() throws Exception { return formatter.format(match, context).trim(); }
public String preview() { return formatter.preview(match).trim(); }