TableReader, Iterable<Object[]>, Iterator<Object[]>CSVReader, ExcelReader, XmlReaderpublic abstract class AbstractStreamTableReader extends AbstractTableReader
| Constructor | Description |
|---|---|
AbstractStreamTableReader() |
Default Constructor.
|
AbstractStreamTableReader(File file) |
Creates a new instance of Reader.
|
AbstractStreamTableReader(InputStream in) |
The constructor for a given input stream.
|
AbstractStreamTableReader(String file) |
Creates a new instance of Reader.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the reader and its underlying stream.
|
protected InputStreamReader |
createInputStreamReader(InputStream stream) |
Creates the input stream reader that feeds the buffered reader.
|
protected BufferedReader |
createReader() |
Creates the buffered reader.
|
CharsetDecoder |
getCharsetDecoder() |
Returns the charset decoder to be used.
|
InputStream |
getInputStream() |
Returns the underlying input stream.
|
protected BufferedReader |
getReader() |
Returns the underlying reader.
|
void |
remove() |
This method throws an exception.
|
void |
reset() |
Resets the reader and its underlying stream.
|
void |
setCharset(String charset) |
Sets the charset to be used on the input stream.
|
void |
setCharset(Charset charset) |
Sets the charset to be used on the input stream.
|
void |
setCharsetDecoder(CharsetDecoder charsetDecoder) |
Sets the charset decoder to be used on the input stream.
|
void |
setInputStream(InputStream in) |
Sets the input stream.
|
addCommentCallBack, convert, convert, convertArray, convertArray, get, getColumnIndex, getColumnType, getHeaderRow, getLineCount, getMinimumColumnCount, getRowCount, getTypeConversionHandler, hasHeaderRow, incrementLineCount, incrementRowCount, isHeaderRowRead, iterator, notifyComment, open, readHeaderRow, registerCommentCallBack, registerTypeConversionHandler, removeCommentCallBack, setColumnType, setHasHeaderRow, setHeaderRow, setHeaderRowRead, setMinimumColumnCount, unregisterCommentCallBack, unregisterTypeConversionHandlerforEach, spliteratorforEachRemaining, hasNext, nextpublic AbstractStreamTableReader()
public AbstractStreamTableReader(InputStream in)
in - input streampublic AbstractStreamTableReader(File file) throws FileNotFoundException
file - file to read fromFileNotFoundException - when the file could not be found.public AbstractStreamTableReader(String file) throws FileNotFoundException
file - file to read fromFileNotFoundException - when the file could not be found.public void setInputStream(InputStream in)
in - the stream to setprotected BufferedReader getReader()
protected BufferedReader createReader()
createInputStreamReader(InputStream)
for the creation of the underlying reader.protected InputStreamReader createInputStreamReader(InputStream stream)
stream - the original input streampublic CharsetDecoder getCharsetDecoder()
public void setCharsetDecoder(CharsetDecoder charsetDecoder)
charsetDecoder - the charset decoder to setpublic void setCharset(Charset charset)
charset - the charset to setpublic void setCharset(String charset)
charset - the charset to setpublic InputStream getInputStream()
public void reset()
reset in interface TableReaderreset in class AbstractTableReaderpublic void remove()
public void close()
close in interface TableReaderclose in class AbstractTableReaderTableReader.close()Copyright © 2018. All rights reserved.