Mercurial > repos > uga-galaxy-group > webservice_toolsuite_v1_1
view WebServiceExtensionsV1.1/WebServiceToolWorkflow_REST_SOAP/lib/SAWADLParser/src/edu/uga/cs/lsdis/meteors/wadls/util/IOUtils.java @ 0:049760c677de default tip
Galaxy WSExtensions added successfully
author | uga-galaxy-group |
---|---|
date | Tue, 05 Jul 2011 19:34:18 -0400 |
parents | |
children |
line wrap: on
line source
/* * (c) Copyright IBM Corp 2001, 2005 */ package edu.uga.cs.lsdis.meteors.wadls.util; import java.io.*; /** * This file is a collection of input/output utilities. * * @author Sanjiva Weerawarana * @author Matthew J. Duftler */ public class IOUtils { // debug flag - generates debug stuff if true static boolean debug = false; ////////////////////////////////////////////////////////////////////////// public static String getStringFromReader (Reader reader) throws IOException { BufferedReader bufIn = new BufferedReader(reader); StringWriter swOut = new StringWriter(); PrintWriter pwOut = new PrintWriter(swOut); String tempLine; while ((tempLine = bufIn.readLine()) != null) { pwOut.println(tempLine); } pwOut.flush(); return swOut.toString(); } }