public class ExcelFile extends Object implements AutoCloseable
Constructor and Description |
---|
ExcelFile(File file) |
ExcelFile(Path path) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getColumn(String sheetName,
Predicate<org.apache.poi.ss.usermodel.Cell> predicate) |
SortedSet<Integer> |
getRows(String sheetName,
Predicate<org.apache.poi.ss.usermodel.Row> predicate) |
String |
read(String sheetName,
int line,
int column) |
String |
read(String sheetName,
int line,
int column,
Consumer<String> action) |
<T> T |
read(String sheetName,
int line,
int column,
Converter<T> function) |
<T> T |
read(String sheetName,
int line,
int column,
Converter<T> function,
Consumer<T> action) |
void |
save(File file) |
void |
save(Path path) |
net.technearts.ExcelFile.ExcelSheet |
sheet(String sheetName) |
<T> void |
write(String sheetName,
int line,
int column,
T value) |
public ExcelFile(Path path) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public ExcelFile(File file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public <T> T read(String sheetName, int line, int column, Converter<T> function, Consumer<T> action)
public <T> void write(String sheetName, int line, int column, T value)
public SortedSet<Integer> getRows(String sheetName, Predicate<org.apache.poi.ss.usermodel.Row> predicate)
public int getColumn(String sheetName, Predicate<org.apache.poi.ss.usermodel.Cell> predicate)
public net.technearts.ExcelFile.ExcelSheet sheet(String sheetName)
public void save(Path path)
public void save(File file)
public void close()
close
in interface AutoCloseable
Copyright © 2019 Technearts. All rights reserved.