Class ByteArrayInputStreamAccess
java.lang.Object
org.hibernate.boot.archive.internal.ByteArrayInputStreamAccess
- All Implemented Interfaces:
Serializable
,InputStreamAccess
An InputStreamAccess implementation based on a byte array
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet access to the stream.Get the name of the resource backing the streamMethods 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 Details
-
ByteArrayInputStreamAccess
-
-
Method Details
-
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
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
-