1 26 27 package org.objectweb.jonas_lib.deployment.lib; 28 29 import java.io.BufferedReader ; 30 import java.io.IOException ; 31 import java.io.InputStream ; 32 import java.io.InputStreamReader ; 33 34 38 public abstract class AbsDeploymentDescManager implements DeploymentDescManager { 39 40 43 public static final String LINK_SEPARATOR = "#"; 44 45 48 protected AbsDeploymentDescManager() { 49 50 } 51 52 58 protected static String xmlContent(InputStream in) throws IOException { 59 60 StringBuffer sb = new StringBuffer (); 61 String line; 62 BufferedReader br = new BufferedReader (new InputStreamReader (in)); 63 while ((line = br.readLine()) != null) { 65 sb.append(line); 66 sb.append("\n"); 67 } 68 return sb.toString(); 69 } 70 71 } | Popular Tags |