00001
00027 package org.objectweb.jonas_lib.deployment.lib;
00028
00029 import java.io.BufferedReader;
00030 import java.io.IOException;
00031 import java.io.InputStream;
00032 import java.io.InputStreamReader;
00033
00038 public abstract class AbsDeploymentDescManager implements DeploymentDescManager {
00039
00043 public static final String LINK_SEPARATOR = "#";
00044
00048 protected AbsDeploymentDescManager() {
00049
00050 }
00051
00058 protected static String xmlContent(InputStream in) throws IOException {
00059
00060 StringBuffer sb = new StringBuffer();
00061 String line;
00062 BufferedReader br = new BufferedReader(new InputStreamReader(in));
00063
00064 while ((line = br.readLine()) != null) {
00065 sb.append(line);
00066 sb.append("\n");
00067 }
00068 return sb.toString();
00069 }
00070
00071 }