Interface FileErrorHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      This method closes the handler;
      void handleFile​(org.apache.commons.vfs2.FileObject file)
      Tells the handler which file is being processed.
      void handleLineError​(long lineNr, String filePart)
      This method handles an error when processing the line with corresponding lineNr.
      void handleNonAccessibleFile​(org.apache.commons.vfs2.FileObject file)
      This method handles a file that is required, but is not accessible.
      void handleNonExistantFile​(org.apache.commons.vfs2.FileObject file)
      This method handles a file that is required, but does not exist.
    • Method Detail

      • handleFile

        void handleFile​(org.apache.commons.vfs2.FileObject file)
                 throws org.pentaho.di.core.exception.KettleException
        Tells the handler which file is being processed.
        Parameters:
        file -
        Throws:
        org.pentaho.di.core.exception.KettleException
      • handleLineError

        void handleLineError​(long lineNr,
                             String filePart)
                      throws org.pentaho.di.core.exception.KettleException
        This method handles an error when processing the line with corresponding lineNr.
        Parameters:
        lineNr -
        filePart - allows us to split error according to a filePart
        Throws:
        org.pentaho.di.core.exception.KettleException
      • close

        void close()
            throws org.pentaho.di.core.exception.KettleException
        This method closes the handler;
        Throws:
        org.pentaho.di.core.exception.KettleException
      • handleNonExistantFile

        void handleNonExistantFile​(org.apache.commons.vfs2.FileObject file)
                            throws org.pentaho.di.core.exception.KettleException
        This method handles a file that is required, but does not exist.
        Parameters:
        file -
        Throws:
        org.pentaho.di.core.exception.KettleException
      • handleNonAccessibleFile

        void handleNonAccessibleFile​(org.apache.commons.vfs2.FileObject file)
                              throws org.pentaho.di.core.exception.KettleException
        This method handles a file that is required, but is not accessible.
        Parameters:
        file -
        Throws:
        org.pentaho.di.core.exception.KettleException