Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.internal

public final Class BinaryStreamImpl

extends ByteArrayInputStream
implements BinaryStream
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.BinaryStream
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream, org.hibernate.engine.jdbc.BinaryStream

Implementation of BinaryStream
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final int
Inherited from java.io.ByteArrayInputStream:
bufcountmarkpos

Constructor Summary

AccessConstructor and Description
public
BinaryStreamImpl(byte[]
The bytes to use backing the stream
bytes
)

Constructs a BinaryStreamImpl

Method Summary

Modifier and TypeMethod and Description
public byte[]
public InputStream
public long
getLength()

Implements org.hibernate.engine.jdbc.BinaryStream.getLength.

Retrieve the length of the input stream
public void
release()

Implements org.hibernate.engine.jdbc.BinaryStream.release.

Release any underlying resources.
Inherited from java.io.ByteArrayInputStream:
availableclosemarkmarkSupportedreadreadreadAllBytesreadNBytesresetskiptransferTo

Field Detail

lengthback to summary
private final int length

Constructor Detail

BinaryStreamImplback to summary
public BinaryStreamImpl(byte[] bytes)

Constructs a BinaryStreamImpl

Parameters
bytes:byte[]

The bytes to use backing the stream

Method Detail

getBytesback to summary
public byte[] getBytes()

Implements org.hibernate.engine.jdbc.BinaryStream.getBytes.

Doc from org.hibernate.engine.jdbc.BinaryStream.getBytes.

Access to the bytes.

Returns:byte[]

The bytes.

getInputStreamback to summary
public InputStream getInputStream()

Implements org.hibernate.engine.jdbc.BinaryStream.getInputStream.

Doc from org.hibernate.engine.jdbc.BinaryStream.getInputStream.

Retrieve the input stream.

Returns:InputStream

The input stream

getLengthback to summary
public long getLength()

Implements org.hibernate.engine.jdbc.BinaryStream.getLength.

Doc from org.hibernate.engine.jdbc.BinaryStream.getLength.

Retrieve the length of the input stream

Returns:long

The input stream length

releaseback to summary
public void release()

Implements org.hibernate.engine.jdbc.BinaryStream.release.

Doc from org.hibernate.engine.jdbc.BinaryStream.release.

Release any underlying resources.

Annotations
@Override