com.eurotech.framework.core.util
Class IOUtil

java.lang.Object
  extended by com.eurotech.framework.core.util.IOUtil

public class IOUtil
extends Object


Constructor Summary
IOUtil()
           
 
Method Summary
static String readResource(org.osgi.framework.BundleContext ctx, String resourceName)
          Reads a resource fully and returns it as a string.
static String readResource(org.osgi.framework.Bundle bundle, String resourceName)
          Reads a resource fully and returns it as a string.
static String readResource(String resourceName)
          Reads a resource fully and returns it as a string.
static String readResource(URL resourceUrl)
          Reads a resource fully and returns it as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtil

public IOUtil()
Method Detail

readResource

public static String readResource(String resourceName)
                           throws IOException
Reads a resource fully and returns it as a string.

Parameters:
ctx -
resourceName -
Returns:
Throws:
IOException

readResource

public static String readResource(org.osgi.framework.BundleContext ctx,
                                  String resourceName)
                           throws IOException
Reads a resource fully and returns it as a string.

Parameters:
ctx -
resourceName -
Returns:
Throws:
IOException

readResource

public static String readResource(org.osgi.framework.Bundle bundle,
                                  String resourceName)
                           throws IOException
Reads a resource fully and returns it as a string.

Parameters:
ctx -
resourceName -
Returns:
Throws:
IOException

readResource

public static String readResource(URL resourceUrl)
                           throws IOException
Reads a resource fully and returns it as a string.

Parameters:
ctx -
resourceName -
Returns:
Throws:
IOException


Copyright © 2013. All Rights Reserved.