public void parseLine(DocData docData, String line) {int k1 = 0;int k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (missing: separator title::date)!");}docData.setTitle(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (missing: separator date::body)!");}docData.setDate(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2>=0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (too many separators)!");}docData.setBody(line.substring(k1));}

public override void ParseLine(DocData docData, string line){int k1 = 0;int k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 < 0){throw new Exception("line: [" + line + "] is in an invalid format (missing: separator title::date)!");}docData.Title = line.Substring(k1, k2 - k1);k1 = k2 + 1;k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 < 0){throw new Exception("line: [" + line + "] is in an invalid format (missing: separator date::body)!");}docData.SetDate(line.Substring(k1, k2 - k1));k1 = k2 + 1;k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 >= 0){throw new Exception("line: [" + line + "] is in an invalid format (too many separators)!");}docData.Body = line.Substring(k1);}
