* @param dt
* The date/time where the bar begins.
*/
public final void beginBar(final Date dt) {
if (this.tw == null) {
throw new QuantError("Must open file first.");
}
if (this.line != null) {
throw new QuantError("Must call end bar");
}
this.line = new StringBuilder();
this.line.append(NumericDateUtil.date2Long(dt));
this.line.append(this.format.getSeparator());