Class UrlInputStreamAccess
- java.lang.Object
-
- org.hibernate.boot.archive.internal.UrlInputStreamAccess
-
- All Implemented Interfaces:
Serializable
,InputStreamAccess
public class UrlInputStreamAccess extends Object implements InputStreamAccess, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UrlInputStreamAccess(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
accessInputStream()
Get access to the stream.String
getStreamName()
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:InputStreamAccess
Get the name of the resource backing the stream- Specified by:
getStreamName
in interfaceInputStreamAccess
- Returns:
- The backing resource name
-
accessInputStream
public InputStream accessInputStream()
Description copied from interface:InputStreamAccess
Get access to the stream. Can be called multiple times, a different stream instance should be returned each time.- Specified by:
accessInputStream
in interfaceInputStreamAccess
- Returns:
- The stream
-
-