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

public Class ByteArrayInputStreamAccess

extends Object
implements InputStreamAccess
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.archive.spi.InputStreamAccess
Imports
java.io.ByteArrayInputStream, .InputStream, org.hibernate.boot.archive.spi.InputStreamAccess

An InputStreamAccess implementation based on a byte array
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final byte[]
private final String

Constructor Summary

AccessConstructor and Description
public
ByteArrayInputStreamAccess(String name, byte[] bytes)

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

bytesback to summary
private final byte[] bytes
nameback to summary
private final String name

Constructor Detail

ByteArrayInputStreamAccessback to summary
public ByteArrayInputStreamAccess(String name, byte[] bytes)

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