Class UrlInputStreamAccess
- java.lang.Object
-
- org.hibernate.boot.archive.internal.UrlInputStreamAccess
-
- All Implemented Interfaces:
InputStreamAccess
public class UrlInputStreamAccess extends Object implements InputStreamAccess
-
-
Constructor Summary
Constructors Constructor Description UrlInputStreamAccess(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamaccessInputStream()Get access to the stream.StringgetStreamName()Get the name of the resource backing the stream-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.archive.spi.InputStreamAccess
fromStream
-
-
-
-
Constructor Detail
-
UrlInputStreamAccess
public UrlInputStreamAccess(URL url)
-
-
Method Detail
-
getStreamName
public String getStreamName()
Description copied from interface:InputStreamAccessGet the name of the resource backing the stream- Specified by:
getStreamNamein interfaceInputStreamAccess- Returns:
- The backing resource name
-
accessInputStream
public InputStream accessInputStream()
Description copied from interface:InputStreamAccessGet access to the stream. Can be called multiple times, a different stream instance should be returned each time.- Specified by:
accessInputStreamin interfaceInputStreamAccess- Returns:
- The stream
-
-