org.eclipse.higgins.icard.io
Interface IInputProcessor


public interface IInputProcessor


Method Summary
 IFormatDescriptor checkInput(InputStream is)
          Checks whether this IInputProcessor can process the input stream.
 IImportCardInfo[] getCardInformation(InputStream is, ICredential credential)
          Processes input stream and returns an array of IImportCardInfo with information about cards which can be imported from the passed stream.
 IElement[] process(InputStream is, ICredential credential)
          Processes input stream and returns an array of IElements extracted.
 

Method Detail

checkInput

IFormatDescriptor checkInput(InputStream is)
                             throws CardIOException
Checks whether this IInputProcessor can process the input stream.

Returns:
the information about input stream data format if it could be processed by this IInputProcessor and null otherwise.
Throws:
CardIOException

process

IElement[] process(InputStream is,
                   ICredential credential)
                   throws CardIOException
Processes input stream and returns an array of IElements extracted.

Throws:
CardIOException

getCardInformation

IImportCardInfo[] getCardInformation(InputStream is,
                                     ICredential credential)
                                     throws CardIOException
Processes input stream and returns an array of IImportCardInfo with information about cards which can be imported from the passed stream.

Throws:
CardIOException