Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VirtualFileInputStreamAccess

        public VirtualFileInputStreamAccess​(java.lang.String name,
                                            org.jboss.vfs.VirtualFile virtualFile)
    • 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 interface InputStreamAccess
        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 interface InputStreamAccess
        Returns:
        The stream