| Method | Description | CSVStream |
new CSVStream(fileStream)
Create a CSVStream object and attach it to a FileStream.
|
getCharset |
getCharset()
Returns current charset. Default is UTF-8.
|
getDelimiter |
getDelimiter()
Returns current field delimiter character. Default is comma.
|
getEnclosure |
getEnclosure()
Returns current field enclosure character. Default is double quote character.
|
getLineEnding |
getLineEnding()
Returns current line ending. Default for Windows is CR-LF, for Mac is LF.
|
getTypeName |
getTypeName()
Get the name of the object type.
|
hasOwnProperty |
hasOwnProperty(propName)
Returns true if this object has a property with name equal to propName.
|
readLine |
readLine()
Read and return a line of CSV file as an array of field values.
|
setCharset |
setCharset(argument)
Set charset. See FileStream.writeMultibyte() for possible charsets.
|
setDelimiter |
setDelimiter(argument)
Set field delimiter character.
|
setEnclosure |
setEnclosure(argument)
Set field enclosure character.
|
setLineEnding |
setLineEnding(argument)
Set line ending character(s).
|
toPrintableString |
toPrintableString(maxLevels)
Returns full string representation of the object. maxLevels parameter will control how many levels of sub-objects to print for nested objects.
|
writeLine |
writeLine(lineValuesArray)
Write an array of values to CSV file.
|