public class CSVResourceReader extends CSVReader
| Constructor and Description |
|---|
CSVResourceReader(String resourcePath,
Character separator,
boolean containsHeader,
String headerPrefix,
String[] ignorePrefixes)
Creates a CSVResourceReader.
|
CSVResourceReader(String resourcePath,
ClassLoader classLoader,
Character separator,
boolean containsHeader,
String headerPrefix,
String[] ignorePrefixes)
Creates a CSVResourceReader
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResourcePath()
Returns the path to csv resource
|
CSVIterator |
iterator()
Returns a
CSVIterator for this string readers |
containsHeader, getHeader, getHeaderPrefix, getIgnorePrefixes, getSeparator, initHeader, map, toDataFrameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CSVResourceReader(String resourcePath, ClassLoader classLoader, Character separator, boolean containsHeader, String headerPrefix, String[] ignorePrefixes)
resourcePath - path to csv resourceclassLoader - ClassLoader used to load the resourceseparator - csv column separatorcontainsHeader - specifies whether file contains header rowheaderPrefix - specifies the prefix of the header rowignorePrefixes - array of prefixes for lines that should be ignoredpublic CSVResourceReader(String resourcePath, Character separator, boolean containsHeader, String headerPrefix, String[] ignorePrefixes)
ClassLoader is provided. The class loader of CSVResourceReader is used.resourcePath - path to csv resourceseparator - csv column separatorcontainsHeader - specifies whether file contains header rowheaderPrefix - specifies the prefix of the header rowignorePrefixes - array of prefixes for lines that should be ignoredpublic String getResourcePath()
public CSVIterator iterator()
CSVIterator for this string readersCopyright © 2017. All rights reserved.