public class SasFileReaderImpl extends Object implements SasFileReader
| Constructor and Description |
|---|
SasFileReaderImpl(InputStream inputStream)
Builds an object of the SasFileReaderImpl class from the file contained in the input stream.
|
SasFileReaderImpl(InputStream inputStream,
Boolean byteOutput)
Builds an object of the SasFileReaderImpl class from the file contained in the input stream with a flag of
the binary or string format of the data output.
|
SasFileReaderImpl(InputStream inputStream,
String encoding)
Builds an object of the SasFileReaderImpl class from the file contained in the input stream with the encoding
defined in the 'encoding' variable.
|
| Modifier and Type | Method and Description |
|---|---|
List<Column> |
getColumns()
The function to get the
Column list from SasFileParser. |
List<Column> |
getColumns(List<String> columnNames)
The function to get the
Column list from SasFileReader
according to the columnNames. |
SasFileProperties |
getSasFileProperties()
The function to get sas file properties.
|
Object[][] |
readAll()
Reads all rows from the sas7bdat file.
|
Object[][] |
readAll(List<String> columnNames)
Reads all rows from the sas7bdat file.
|
Object[] |
readNext()
Reads all rows from the sas7bdat file.
|
Object[] |
readNext(List<String> columnNames)
Reads all rows from the sas7bdat file.
|
public SasFileReaderImpl(InputStream inputStream)
inputStream - - an input stream which should contain a correct sas7bdat file.public SasFileReaderImpl(InputStream inputStream, String encoding)
inputStream - - an input stream which should contain a correct sas7bdat file.encoding - - the string containing the encoding to use in strings outputpublic SasFileReaderImpl(InputStream inputStream, Boolean byteOutput)
inputStream - - an input stream which should contain a correct sas7bdat file.byteOutput - - the flag of data output in binary or string formatpublic List<Column> getColumns()
Column list from SasFileParser.getColumns in interface SasFileReaderpublic List<Column> getColumns(List<String> columnNames)
Column list from SasFileReader
according to the columnNames.getColumns in interface SasFileReadercolumnNames - - list of column names that should be returned.public Object[][] readAll(List<String> columnNames)
readAll in interface SasFileReadercolumnNames - list of column names which should be processed.public Object[][] readAll()
readAll in interface SasFileReaderpublic Object[] readNext() throws IOException
readNext in interface SasFileReaderIOException - if reading input stream is impossible.public Object[] readNext(List<String> columnNames) throws IOException
readNext in interface SasFileReadercolumnNames - list of column names which should be processed.IOException - if reading input stream is impossible.public SasFileProperties getSasFileProperties()
getSasFileProperties in interface SasFileReaderSasFileProperties class that stores file metadata.Copyright © 2019. All rights reserved.