Class ByteArrayInputStreamAccess
- java.lang.Object
-
- org.hibernate.boot.archive.internal.ByteArrayInputStreamAccess
-
- All Implemented Interfaces:
Serializable
,InputStreamAccess
public class ByteArrayInputStreamAccess extends Object implements InputStreamAccess, Serializable
An InputStreamAccess implementation based on a byte array- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteArrayInputStreamAccess(String name, byte[] bytes)
-
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
-
ByteArrayInputStreamAccess
public ByteArrayInputStreamAccess(String name, byte[] bytes)
-
-
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
-
-