messif.objects.extraction
Interface Extractor<T extends LocalAbstractObject>

Type Parameters:
T - the type of object that is extracted by this extractor

public interface Extractor<T extends LocalAbstractObject>

Interface for extractors that can create objects from binary data.


Method Summary
 T extract(ExtractorDataSource dataSource)
          Extracts the LocalAbstractObject from the specified binary data.
 java.lang.Class<? extends T> getExtractedClass()
          Returns the object class extracted by this extractor.
 

Method Detail

extract

T extract(ExtractorDataSource dataSource)
                                      throws ExtractorException,
                                             java.io.IOException
Extracts the LocalAbstractObject from the specified binary data.

Parameters:
dataSource - the source of binary data for the extraction
Returns:
a new instance of object extracted from the binary data
Throws:
ExtractorException - if the extractor encountered problem extracting the object from the binary data
java.io.IOException - if there was a problem reading data from the dataSource

getExtractedClass

java.lang.Class<? extends T> getExtractedClass()
Returns the object class extracted by this extractor.

Returns:
the object class extracted by this extractor