(Metadata metadata, Property property, FeatureMap fmap)
| 136 | } |
| 137 | |
| 138 | private void setTikaFeature(Metadata metadata, Property property, FeatureMap fmap) { |
| 139 | String value = metadata.get(property); |
| 140 | if (value == null) { |
| 141 | return; |
| 142 | } |
| 143 | |
| 144 | value = value.trim(); |
| 145 | if (value.length() == 0) { |
| 146 | return; |
| 147 | } |
| 148 | String key = property.getName().toUpperCase(); |
| 149 | if (fmap.containsKey(key)) { |
| 150 | fmap.put("TIKA_" + key, value); |
| 151 | } |
| 152 | else { |
| 153 | fmap.put(key, value); |
| 154 | fmap.put("TIKA_" + key, value); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Tries to extract tips for the parser as specified here - |
no test coverage detected