KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > process > LinkedJavaProcessTestMain2


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.process;
5
6 import java.io.BufferedReader JavaDoc;
7 import java.io.InputStreamReader JavaDoc;
8
9 /**
10  * A simple program for the {@link LinkedJavaProcessTest}that simply echoes a single line of input.
11  */

12 public class LinkedJavaProcessTestMain2 {
13
14   public static void main(String JavaDoc[] args) throws Exception JavaDoc {
15     BufferedReader JavaDoc reader = new BufferedReader JavaDoc(new InputStreamReader JavaDoc(System.in));
16     String JavaDoc line = reader.readLine();
17     System.out.println("DATA: out: <" + line + ">");
18     System.err.println("DATA: err: <" + line + ">");
19   }
20
21 }
22
Popular Tags