Class StreamBackedBinaryStream
java.lang.Object
org.hibernate.engine.jdbc.internal.StreamBackedBinaryStream
- All Implemented Interfaces:
BinaryStream
Implementation of
BinaryStream
backed by an InputStream
.- Since:
- 7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBlob
(LobCreator lobCreator) Use the givenLobCreator
to create aBlob
with the same data as this binary stream.byte[]
getBytes()
Access to the bytes.Retrieve the input stream.long
Retrieve the length of the input streamvoid
release()
Release any underlying resources.
-
Constructor Details
-
StreamBackedBinaryStream
-
-
Method Details
-
getInputStream
Description copied from interface:BinaryStream
Retrieve the input stream.- Specified by:
getInputStream
in interfaceBinaryStream
- Returns:
- The input stream
-
getBytes
public byte[] getBytes()Description copied from interface:BinaryStream
Access to the bytes.- Specified by:
getBytes
in interfaceBinaryStream
- Returns:
- The bytes.
-
getLength
public long getLength()Description copied from interface:BinaryStream
Retrieve the length of the input stream- Specified by:
getLength
in interfaceBinaryStream
- Returns:
- The input stream length
-
asBlob
Description copied from interface:BinaryStream
Use the givenLobCreator
to create aBlob
with the same data as this binary stream.- Specified by:
asBlob
in interfaceBinaryStream
-
release
public void release()Description copied from interface:BinaryStream
Release any underlying resources.- Specified by:
release
in interfaceBinaryStream
-