MATSIM
MatricesWriterHandler.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * MatricesWriterHandler.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.matrices;
22 
23 import java.io.BufferedWriter;
24 import java.io.IOException;
25 
26 interface MatricesWriterHandler {
27 
29  // <matrices ... > ... </matrices>
31 
32  public void startMatrices(final Matrices matrices, final BufferedWriter out) throws IOException;
33 
34  public void endMatrices(final BufferedWriter out) throws IOException;
35 
37  // <matrix ... > ... </matrix>
39 
40  public void startMatrix(final Matrix matrix, final BufferedWriter out) throws IOException;
41 
42  public void endMatrix(final BufferedWriter out) throws IOException;
43 
45  // <entry ... />
47 
48  public void startEntry(final Entry entry, final BufferedWriter out) throws IOException;
49 
50  public void endEntry(final BufferedWriter out) throws IOException;
51 
52  public void writeSeparator(final BufferedWriter out) throws IOException;
53 }