MATSIM
CountsWriterHandler.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * CountsWriterHandler.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2007 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.counts;
22 import java.io.BufferedWriter;
23 import java.io.IOException;
24 
25 interface CountsWriterHandler {
27  // <counts ... > ... </counts>
29  public void startCounts(final Counts counts, final BufferedWriter out) throws IOException;
30  public void endCounts(final BufferedWriter out) throws IOException;
32  // <count ... > ... </count>
34  public void startCount(final Count count, final BufferedWriter out) throws IOException;
35  public void endCount(final BufferedWriter out) throws IOException;
37  // <volume ... />
39  public void startVolume(final Volume volume, final BufferedWriter out) throws IOException;
40  public void endVolume(final BufferedWriter out) throws IOException;
41 
42  public void writeSeparator(final BufferedWriter out) throws IOException;
43 }