org.hibernate.type.descriptor
Interface BinaryStream

All Known Implementing Classes:
BinaryStreamImpl

public interface BinaryStream

Wraps a binary stream to also provide the length which is needed when binding.

Author:
Steve Ebersole

Method Summary
 byte[] getBytes()
          Access to the bytes.
 java.io.InputStream getInputStream()
          Retrieve the input stream.
 int getLength()
          Retrieve the length of the input stream
 

Method Detail

getInputStream

java.io.InputStream getInputStream()
Retrieve the input stream.

Returns:
The input stream

getBytes

byte[] getBytes()
Access to the bytes.

Returns:
The bytes.

getLength

int getLength()
Retrieve the length of the input stream

Returns:
The input stream length


Copyright © 2012. All Rights Reserved.