KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SnowMailClient > gnupg > LineProcessors > SimpleLineProcessor


1 package SnowMailClient.gnupg.LineProcessors;
2
3
4 /** Simply prints the read line
5 */

6 public final class SimpleLineProcessor implements LineProcessor
7 {
8   String JavaDoc linePrefix;
9
10   public SimpleLineProcessor(String JavaDoc linePrefix)
11   {
12     this.linePrefix = linePrefix;
13   }
14
15   public void processLine(String JavaDoc line)
16   {
17     System.out.println(linePrefix+line);
18   }
19
20 }
Popular Tags