Class BinaryStreamImpl
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- org.hibernate.engine.jdbc.internal.BinaryStreamImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BinaryStream
public final class BinaryStreamImpl extends ByteArrayInputStream implements BinaryStream
Implementation ofBinaryStream
-
-
Field Summary
-
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
-
Constructor Summary
Constructors Constructor Description BinaryStreamImpl(byte[] bytes)
Constructs a BinaryStreamImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
Access to the bytes.InputStream
getInputStream()
Retrieve the input stream.long
getLength()
Retrieve the length of the input streamvoid
release()
Release any underlying resources.-
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
-
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes
-
-
-
-
Method Detail
-
getInputStream
public InputStream 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
-
release
public void release()
Description copied from interface:BinaryStream
Release any underlying resources.- Specified by:
release
in interfaceBinaryStream
-
-