View Javadoc
1   /*
2   Copyright (C) 2014 Chr. Clemens Lee <clemens@kclee.com>.
3   
4   This file is part of JavaNCSS
5   (http://javancss.codehaus.org/).
6   
7   This library is free software; you can redistribute it and/or
8   modify it under the terms of the GNU Lesser General Public
9   License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11  
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  Lesser General Public License for more details.
16  
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA*/
20  
21  package javancss;
22  
23  import java.io.IOException;
24  import java.io.Writer;
25  
26  /**
27   * Interface that each class generating output has to implement.
28   * The two main implementations to generate ascii and xml output.<p/>
29   *
30   * A formatter implementation will be invoked by the Javancss
31   * class.
32   *
33   * @author  Chr. Clemens Lee <clemens@kclee.com>
34   * @version $Id$
35   */
36  public interface Formatter
37  {
38      void printPackageNcss( Writer w )
39          throws IOException;
40  
41      void printObjectNcss( Writer w )
42          throws IOException;
43  
44      void printFunctionNcss( Writer w )
45          throws IOException;
46  
47      void printJavaNcss( Writer w )
48          throws IOException;
49  
50      void printStart( Writer w )
51          throws IOException;
52  
53      void printEnd( Writer w )
54          throws IOException;
55  }