01: /*
02: * Author: Chris Seguin
03: *
04: * This software has been developed under the copyleft
05: * rules of the GNU General Public License. Please
06: * consult the GNU General Public License for more
07: * details about use and distribution of this software.
08: */
09: package org.acm.seguin.pretty.line;
10:
11: import org.acm.seguin.pretty.PrintData;
12: import java.io.Writer;
13: import java.io.PrintWriter;
14: import org.acm.seguin.pretty.LineQueue;
15:
16: /**
17: * The line number data
18: *
19: *@author Chris Seguin
20: *@author <a href="JRefactory@ladyshot.demon.co.uk">Mike Atkinson</a>
21: *@version $Id: LineNumberingData.java,v 1.2 2003/07/29 20:51:56 mikeatkinson Exp $
22: *@created October 14, 1999
23: */
24: public class LineNumberingData extends PrintData {
25: /**
26: * Create a print data object
27: */
28: public LineNumberingData() {
29: super ();
30: }
31:
32: /**
33: * Create a print data object
34: *
35: *@param out the output stream
36: */
37: public LineNumberingData(Writer out) {
38: super (out);
39: }
40:
41: /** Creates a line queue object
42: *@param output the output stream
43: *@return the queue
44: */
45: protected LineQueue lineQueueFactory(PrintWriter output) {
46: return new NumberedLineQueue(output);
47: }
48: }
|