com.businessobjects.rebean.wi
Interface CSVView

All Superinterfaces:
CharacterView

public interface CSVView
extends CharacterView

The CSVView interface provides comma separated value (CSV) output format encapsulation.

This class is used to retrieve DataProvider content in binary CSV format with given delimiters.

Retrieve the contents of this object using BinaryView.getContent() or BinaryView.getContent(OutputStream outputStream) for better performance.
Note: The current users locale is taken in to account for number and date formatting.
Note: By default, UTF8 encoding is used.

Since:
11.5
See Also:
BinaryView, DataProvider

Method Summary
 java.lang.String getCharDelimiter()
          Returns the character delimiter.
 java.lang.String getCharset()
          Return the charset.
 java.lang.String getColumnSeparator()
          Returns the column separator.
 void getContent(java.io.Writer writer)
          Write the contents of the view to a HTML stream.
 java.lang.String getEndOfLine()
          Return the end of line delimiter.
 void setCharDelimiter(java.lang.String charDelimiter)
          Set the character delimiter.
 void setCharset(java.lang.String charset)
          Set the charset.
 void setColumnSeparator(java.lang.String columnSeparator)
          Set the column separator.
 void setEndOfLine(java.lang.String eol)
          Set the end of line delimiter.
 
Methods inherited from interface com.businessobjects.rebean.wi.CharacterView
getContent, getEncoding, getStream
 

Method Detail

getColumnSeparator

java.lang.String getColumnSeparator()
Returns the column separator. By default the separator is ;.


setColumnSeparator

void setColumnSeparator(java.lang.String columnSeparator)
Set the column separator.

Parameters:
columnSeparator - The character to be used as a column separator in the returned view.

getCharDelimiter

java.lang.String getCharDelimiter()
Returns the character delimiter. By default the character delimiter is ".


setCharDelimiter

void setCharDelimiter(java.lang.String charDelimiter)
Set the character delimiter.

Parameters:
charDelimiter - The character to be used as a character delimiter in the returned view.

getEndOfLine

java.lang.String getEndOfLine()
Return the end of line delimiter. By default the end of line delimiter is in windows format (\n\n).


setEndOfLine

void setEndOfLine(java.lang.String eol)
Set the end of line delimiter.

Parameters:
eol - The character to be used as an end of line delimiter in the returned view.

getCharset

java.lang.String getCharset()
Return the charset. By default the charset is UTF8 (\n\n).

Since:
11.5

setCharset

void setCharset(java.lang.String charset)
Set the charset.

Parameters:
charset - The charset to be used.
Since:
11.5

getContent

void getContent(java.io.Writer writer)
Write the contents of the view to a HTML stream.

Parameters:
writer - The HTML stream in which the content will be displayed.
Since:
11.5