@Test public void testGetKindWithoutExtension() { assertNotNull(new LaunchServicesFileDescriptor().getKind("txt")); }
@Override public String getKind(final String filename) { if(StringUtils.isBlank(Path.getExtension(filename))) { final String kind = this.kind(filename); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; } final String kind = this.kind(Path.getExtension(filename)); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; }
LaunchServicesFileDescriptor extends AbstractFileDescriptor { @Override public String getKind(final String filename) { if(StringUtils.isBlank(Path.getExtension(filename))) { final String kind = this.kind(filename); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; } final String kind = this.kind(Path.getExtension(filename)); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; } }
LaunchServicesFileDescriptor extends AbstractFileDescriptor { @Override public String getKind(final String filename) { if(StringUtils.isBlank(Path.getExtension(filename))) { final String kind = this.kind(filename); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; } final String kind = this.kind(Path.getExtension(filename)); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; }  }
LaunchServicesFileDescriptor extends AbstractFileDescriptor { @Override public String getKind(final String filename) { if(StringUtils.isBlank(Path.getExtension(filename))) { final String kind = this.kind(filename); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; } final String kind = this.kind(Path.getExtension(filename)); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; }  @Override String getKind(final String filename); }
LaunchServicesFileDescriptor extends AbstractFileDescriptor { @Override public String getKind(final String filename) { if(StringUtils.isBlank(Path.getExtension(filename))) { final String kind = this.kind(filename); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; } final String kind = this.kind(Path.getExtension(filename)); if(StringUtils.isBlank(kind)) { return LocaleFactory.localizedString("Unknown"); } return kind; }  @Override String getKind(final String filename);  }