org.jboss.services.binding.impl
Class Util

java.lang.Object
  extended by org.jboss.services.binding.impl.Util

public class Util
extends Object

Utilities used by service binding manager components.

Version:
$Revision: 89205 $
Author:
Brian Stansberry

Method Summary
static File createTempFile()
           
static
<T> T
getBindingValue(ServiceBindingValueSource source, ServiceBinding binding, Class<T> expectedType)
           
static
<T> T
getBindingValueWithInput(ServiceBindingValueSource source, ServiceBinding binding, Object input, Class<T> expectedType)
           
static String getContentAsString(String resource)
           
static String getContentAsString(URL url)
           
static InputStream getInputStream(String resource)
           
static InputStream getInputStream(URL url)
           
static InputStreamReader getInputStreamReader(String resource)
           
static InputStreamReader getInputStreamReader(URL url)
           
static File writeToTempFile(String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInputStream

public static InputStream getInputStream(URL url)
                                  throws IOException
Throws:
IOException

getInputStream

public static InputStream getInputStream(String resource)
                                  throws IOException
Throws:
IOException

getInputStreamReader

public static InputStreamReader getInputStreamReader(URL url)
                                              throws IOException
Throws:
IOException

getInputStreamReader

public static InputStreamReader getInputStreamReader(String resource)
                                              throws IOException
Throws:
IOException

getContentAsString

public static String getContentAsString(URL url)
                                 throws IOException
Throws:
IOException

getContentAsString

public static String getContentAsString(String resource)
                                 throws IOException
Throws:
IOException

writeToTempFile

public static File writeToTempFile(String content)
                            throws IOException
Throws:
IOException

createTempFile

public static File createTempFile()
                           throws IOException
Throws:
IOException

getBindingValue

public static <T> T getBindingValue(ServiceBindingValueSource source,
                                    ServiceBinding binding,
                                    Class<T> expectedType)

getBindingValueWithInput

public static <T> T getBindingValueWithInput(ServiceBindingValueSource source,
                                             ServiceBinding binding,
                                             Object input,
                                             Class<T> expectedType)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.