Package org.jboss.as.jpa.hibernate5
Class VirtualFileInputStreamAccess
- java.lang.Object
-
- org.jboss.as.jpa.hibernate5.VirtualFileInputStreamAccess
-
- All Implemented Interfaces:
InputStreamAccess
public class VirtualFileInputStreamAccess extends java.lang.Object implements InputStreamAccess
InputStreamAccess provides Hibernate with lazy, on-demand access to InputStreams for the various types of resources found during archive scanning.
-
-
Constructor Summary
Constructors Constructor Description VirtualFileInputStreamAccess(java.lang.String name, org.jboss.vfs.VirtualFile virtualFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
accessInputStream()
Get access to the stream.java.lang.String
getStreamName()
Get the name of the resource backing the stream
-
-
-
Method Detail
-
getStreamName
public java.lang.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 java.io.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
-
-