public class BulkFileReader extends Object implements Closeable, BulkEntityReadable
Constructor and Description |
---|
BulkFileReader(BulkRecordReader reader,
ResultFileType fileType)
Reserved for internal use.
|
BulkFileReader(File file,
ResultFileType resultFileType,
DownloadFileType fileFormat)
Creates new instance
|
BulkFileReader(File file,
ResultFileType resultFileType,
DownloadFileType fileFormat,
boolean deleteFileOnClose)
Reserved for internal use.
|
BulkFileReader(InputStream inputStream,
ResultFileType resultFileType,
DownloadFileType fileFormat)
Creates new instance from given stream
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getBulkFilePath()
Gets bulk file path.
|
BulkEntityIterable |
getEntities()
Returns entities stored in the file.
|
public BulkFileReader(File file, ResultFileType resultFileType, DownloadFileType fileFormat) throws IOException
file
- path of the bulk file to readresultFileType
- the type of bulk file download which is being readfileFormat
- the bulk file formatIOException
public BulkFileReader(File file, ResultFileType resultFileType, DownloadFileType fileFormat, boolean deleteFileOnClose) throws IOException
file
- path of the bulk file to readresultFileType
- the type of bulk file download which is being readfileFormat
- the bulk file formatdeleteFileOnClose
- whether delete the temporary bulk file on closeIOException
public BulkFileReader(InputStream inputStream, ResultFileType resultFileType, DownloadFileType fileFormat) throws IOException
inputStream
- InputStream to readresultFileType
- the type of bulk file download which is being readfileFormat
- the bulk file formatIOException
public BulkFileReader(BulkRecordReader reader, ResultFileType fileType)
reader
- the bulk stream reader instancefileType
- the type of bulk file download which is being readpublic BulkEntityIterable getEntities()
getEntities
in interface BulkEntityReadable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public String getBulkFilePath()
Copyright © 2024. All rights reserved.