mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Inverted configuration of Metadata Extracters
- Adding an extracter no longer requires modification to the MetadataExtracterRegistry Fixed lack of stream closures git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2465 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -50,7 +50,7 @@ public class OfficeMetadataExtracter extends AbstractMetadataExtracter
|
||||
super(new HashSet<String>(Arrays.asList(mimeTypes)), 1.0, 1000);
|
||||
}
|
||||
|
||||
public void extract(ContentReader reader, final Map<QName, Serializable> destination) throws ContentIOException
|
||||
public void extractInternal(ContentReader reader, final Map<QName, Serializable> destination) throws Throwable
|
||||
{
|
||||
POIFSReaderListener readerListener = new POIFSReaderListener()
|
||||
{
|
||||
@@ -96,12 +96,6 @@ public class OfficeMetadataExtracter extends AbstractMetadataExtracter
|
||||
poiFSReader.registerListener(readerListener, SummaryInformation.DEFAULT_STREAM_NAME);
|
||||
poiFSReader.read(is);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
throw new ContentIOException("Compound Document SummaryInformation metadata extraction failed: \n"
|
||||
+ " reader: " + reader,
|
||||
e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (is != null)
|
||||
|
Reference in New Issue
Block a user