Top Description Fields Constructors Methods
org.hibernate.boot.archive.internal

public Class FileInputStreamAccess

extends Object
implements InputStreamAccess, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.boot.archive.spi.InputStreamAccess
Imports
java.io.BufferedInputStream, .File, .FileInputStream, .FileNotFoundException, .InputStream, .Serializable, org.hibernate.HibernateException, org.hibernate.boot.archive.spi.ArchiveException, .InputStreamAccess

An InputStreamAccess implementation based on a File reference
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final File
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public InputStream
public String
getStreamName()

Implements org.hibernate.boot.archive.spi.InputStreamAccess.getStreamName.

Get the name of the resource backing the stream
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileback to summary
private final File file
nameback to summary
private final String name

Constructor Detail

FileInputStreamAccessback to summary
public FileInputStreamAccess(String name, File file)

Method Detail

accessInputStreamback to summary
public InputStream accessInputStream()

Implements org.hibernate.boot.archive.spi.InputStreamAccess.accessInputStream.

Doc from org.hibernate.boot.archive.spi.InputStreamAccess.accessInputStream.

Get access to the stream. Can be called multiple times, a different stream instance should be returned each time.

Returns:InputStream

The stream

Annotations
@Override
getStreamNameback to summary
public String getStreamName()

Implements org.hibernate.boot.archive.spi.InputStreamAccess.getStreamName.

Doc from org.hibernate.boot.archive.spi.InputStreamAccess.getStreamName.

Get the name of the resource backing the stream

Returns:String

The backing resource name

Annotations
@Override