Skip to content

Instantly share code, notes, and snippets.

@f1code
f1code / gist:858086
Created March 7, 2011 04:50
SalesForce Apex CSV Parser
/**
* Used to read a delimited file.
*/
public class SSSCsvReader {
private String delim = ',';
// the input data
private String[] buffer;
public SSSCsvReader(String data){
this.buffer = data.split('\n');
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css" type="text/css"
media="screen" />
</head>
<body>
<h1 id="qunit-header">
QUnit example</h1>
/*
* Copyright Strategic Sales Systems 2011
* Customization to write an email to the selected records on the mainview.
*/
define({
/**
* Open an email using Outlook automation, if available, falling back to mailto url otherwise.
* @param {Array|String} recipient email address (or addresses)
*/