public static class CSVUtil.Reader extends Object implements Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
CSVUtil.RowsIterator |
iterator()
Read csv format file.
|
CSVUtil.RowsIterator |
sharedIterator()
Read csv format file.
|
Stream<String[]> |
sharedStream()
Read csv format file.
|
Stream<String[]> |
sharedStream(char separator)
Read csv format file.
|
Stream<String[]> |
stream()
Read csv format file.
|
<T> Stream<T> |
stream(Class<T> clazz)
Read csv format file.
|
public <T> Stream<T> stream(Class<T> clazz)
T - the result typeclazz - the class convert topublic Stream<String[]> stream() throws IOException
IOException - file not exists or read file error.public Stream<String[]> sharedStream() throws IOException
IOException - file not exists or read file error.public Stream<String[]> sharedStream(char separator) throws IOException
separator - the separator characterIOException - file not exists or read file error.public CSVUtil.RowsIterator iterator() throws IOException
IOException - file not exists or read file error.public CSVUtil.RowsIterator sharedIterator() throws IOException
IOException - file not exists or read file error.public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2025. All rights reserved.