Class BatchingImportReader


  • public class BatchingImportReader
    extends ImpExReader
    • Constructor Detail

      • BatchingImportReader

        public BatchingImportReader​(java.io.InputStream input,
                                    ImportDataDumpStrategy dumpStrategy,
                                    java.lang.String processCode)
                             throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
    • Method Detail

      • findExternalDataMedia

        public ImpExMedia findExternalDataMedia​(java.lang.String code)
                                         throws JaloBusinessException
        Description copied from class: ImpExReader
        Searches the media with the given code in the context of the reader and returns it.
        Overrides:
        findExternalDataMedia in class ImpExReader
        Parameters:
        code - code of the media
        Returns:
        media with given code or null if no data is found
        Throws:
        JaloBusinessException - a media with the code was found but has had no data attached
      • enableCodeExecution

        public void enableCodeExecution​(boolean isOn)
        Description copied from class: ImpExReader
        Sets the code execution flag. Is code execution enabled, the parsing and interpreting of code lines is enabled. Otherwise these lines will be seen as comments.
        Overrides:
        enableCodeExecution in class ImpExReader
        Parameters:
        isOn - Should code execution be enabled?
      • setCurrentHeader

        public void setCurrentHeader​(HeaderDescriptor header)
        Description copied from class: ImpExReader
        Sets the given header instance as current header. The current header is set for each read value line.
        Overrides:
        setCurrentHeader in class ImpExReader
        Parameters:
        header - the header which will be used from now as header for read value lines