View Javadoc
1 /* 2 3 Loader - tool for transfering data from one JDBC source to another and 4 doing transformations during copy. 5 6 Copyright (C) 2002 Together 7 8 This library is free software; you can redistribute it and/or 9 modify it under the terms of the GNU Lesser General Public 10 License as published by the Free Software Foundation; either 11 version 2.1 of the License, or (at your option) any later version. 12 13 This library is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 Lesser General Public License for more details. 17 18 You should have received a copy of the GNU Lesser General Public 19 License along with this library; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 */ 22 23 package org.webdocwf.util.loader.task; 24 25 import java.io.BufferedReader; 26 import java.io.PrintStream; 27 import org.apache.tools.ant.BuildException; 28 import java.io.IOException; 29 30 31 /*** 32 * Support class for reading error messages from main process (Loader) 33 * 34 */ 35 36 public class ErrorReader extends Thread 37 { 38 39 BufferedReader er; 40 41 public ErrorReader(BufferedReader bufferedreader) 42 { 43 er = bufferedreader; 44 //System.out.println("Making ER"); 45 } 46 47 public void run() 48 { 49 try 50 { 51 for(; !er.ready(); Thread.sleep(100L)) { } 52 String s; 53 while((s = er.readLine()) != null) 54 { 55 System.out.println(s); 56 } 57 } 58 catch(Exception exception) { 59 60 } 61 } 62 }

This page was automatically generated by Maven