Package org.openrefine.importers
Class MultiFileReadingProgressStub
- java.lang.Object
-
- org.openrefine.importers.MultiFileReadingProgressStub
-
- All Implemented Interfaces:
MultiFileReadingProgress
public class MultiFileReadingProgressStub extends Object implements MultiFileReadingProgress
-
-
Field Summary
Fields Modifier and Type Field Description long
bytesRead
String
fileSource
-
Constructor Summary
Constructors Constructor Description MultiFileReadingProgressStub()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endFiles()
Called at the end of reading all files in the importing job.void
readingFile(String fileSource, long bytesRead)
Called while the file is being read, with the total number of bytes read since the beginning of the filevoid
startFile(String fileSource)
Called when starting to read a file
-
-
-
Field Detail
-
bytesRead
public long bytesRead
-
fileSource
public String fileSource
-
-
Method Detail
-
startFile
public void startFile(String fileSource)
Description copied from interface:MultiFileReadingProgress
Called when starting to read a file- Specified by:
startFile
in interfaceMultiFileReadingProgress
-
readingFile
public void readingFile(String fileSource, long bytesRead)
Description copied from interface:MultiFileReadingProgress
Called while the file is being read, with the total number of bytes read since the beginning of the file- Specified by:
readingFile
in interfaceMultiFileReadingProgress
-
endFiles
public void endFiles()
Description copied from interface:MultiFileReadingProgress
Called at the end of reading all files in the importing job. This is to ensure that subsequent reads (for instance when saving the project in the workspace) do not impact the progress, as the progress of that step is handled separately.- Specified by:
endFiles
in interfaceMultiFileReadingProgress
-
-