org.jboss.services.binding.impl
Class Util
java.lang.Object
org.jboss.services.binding.impl.Util
public class Util
- extends Object
Utilities used by service binding manager components.
- Version:
- $Revision: 89886 $
- Author:
- Brian Stansberry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER_TEMP_DIR_PROPERTY
public static final String SERVER_TEMP_DIR_PROPERTY
- Name of system property indicating server temp dir
- See Also:
- Constant Field Values
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.