org.hibernate.validator.internal.util
Class ResourceLoaderHelper

java.lang.Object
  extended by org.hibernate.validator.internal.util.ResourceLoaderHelper

public final class ResourceLoaderHelper
extends Object

Helper methods for loading resource files

Author:
Hardy Ferentschik

Constructor Summary
ResourceLoaderHelper()
           
 
Method Summary
static InputStream getResettableInputStreamForPath(String path)
          Returns an input stream for the given path, which supports the mark/reset contract.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoaderHelper

public ResourceLoaderHelper()
Method Detail

getResettableInputStreamForPath

public static InputStream getResettableInputStreamForPath(String path)
Returns an input stream for the given path, which supports the mark/reset contract.

Parameters:
path - The path of the requested input stream.
Returns:
An input stream for the given path or null if no such resource exists.
See Also:
InputStream.markSupported()


Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved