public class Importer<T> extends Object implements Closeable
| Constructor and Description |
|---|
Importer(Class<T> clazz,
Charset charset,
File file) |
Importer(Class<T> clazz,
Charset charset,
InputStream inputStream,
String filename) |
Importer(Class<T> clazz,
File file) |
Importer(Class<T> clazz,
File file,
Class<?> group) |
Importer(Class<T> clazz,
File file,
ImporterXLSXType importerXLSXType) |
Importer(Class<T> clazz,
InputStream inputStream,
String filename) |
Importer(Class<T> clazz,
InputStream inputStream,
String filename,
boolean isLastSheet) |
Importer(Class<T> clazz,
InputStream inputStream,
String filename,
boolean isLastSheet,
Class<?> group) |
Importer(Class<T> clazz,
InputStream inputStream,
String filename,
Class<?> group) |
Importer(Class<T> clazz,
InputStream inputStream,
String filename,
ImporterXLSXType importerXLSXType) |
Importer(Class<T> clazz,
InputStream inputStream,
String filename,
int afterLine,
boolean isLastSheet) |
Importer(Class<T> clazz,
InputStream inputStream,
String filename,
int afterLine,
boolean isLastSheet,
Class<?> group) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileType |
getFileType() |
protected static Map<Method,TableCellMapping> |
getMappedMethods(Class<?> clazz,
Class<?> group) |
int |
getNumberOfSheets() |
List<T> |
parse() |
void |
setAfterLine(int afterLine) |
void |
setCharset(Charset charset) |
void |
setDateAsLocalDateTime(boolean dateAsLocalDateTime) |
void |
setDateStringPattern(String dateStringPattern) |
void |
setDateTimeStringPattern(String dateTimeStringPattern) |
public Importer(Class<T> clazz, Charset charset, File file) throws IOException
IOExceptionpublic Importer(Class<T> clazz, Charset charset, InputStream inputStream, String filename) throws IOException
IOExceptionpublic Importer(Class<T> clazz, File file, ImporterXLSXType importerXLSXType) throws IOException
IOExceptionpublic Importer(Class<T> clazz, File file) throws IOException
IOExceptionpublic Importer(Class<T> clazz, File file, Class<?> group) throws IOException
IOExceptionpublic Importer(Class<T> clazz, InputStream inputStream, String filename) throws IOException
IOExceptionpublic Importer(Class<T> clazz, InputStream inputStream, String filename, Class<?> group) throws IOException
IOExceptionpublic Importer(Class<T> clazz, InputStream inputStream, String filename, ImporterXLSXType importerXLSXType) throws IOException
IOExceptionpublic Importer(Class<T> clazz, InputStream inputStream, String filename, boolean isLastSheet) throws IOException
IOExceptionpublic Importer(Class<T> clazz, InputStream inputStream, String filename, boolean isLastSheet, Class<?> group) throws IOException
IOExceptionpublic Importer(Class<T> clazz, InputStream inputStream, String filename, int afterLine, boolean isLastSheet) throws IOException
IOExceptionpublic Importer(Class<T> clazz, InputStream inputStream, String filename, int afterLine, boolean isLastSheet, Class<?> group) throws IOException
IOExceptionpublic FileType getFileType()
protected static final Map<Method,TableCellMapping> getMappedMethods(Class<?> clazz, Class<?> group)
public void setAfterLine(int afterLine)
public void setDateStringPattern(String dateStringPattern)
public void setDateTimeStringPattern(String dateTimeStringPattern)
public void setCharset(Charset charset)
public void setDateAsLocalDateTime(boolean dateAsLocalDateTime)
public int getNumberOfSheets()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017 TecSinapse. All rights reserved.