org.hibernate.engine.jdbc.internal
Class BinaryStreamImpl
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.hibernate.engine.jdbc.internal.BinaryStreamImpl
- All Implemented Interfaces:
- Closeable, BinaryStream
public class BinaryStreamImpl
- extends ByteArrayInputStream
- implements BinaryStream
Implementation of BinaryStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryStreamImpl
public BinaryStreamImpl(byte[] bytes)
getInputStream
public InputStream getInputStream()
- Description copied from interface:
BinaryStream
- Retrieve the input stream.
- Specified by:
getInputStream
in interface BinaryStream
- Returns:
- The input stream
getBytes
public byte[] getBytes()
- Description copied from interface:
BinaryStream
- Access to the bytes.
- Specified by:
getBytes
in interface BinaryStream
- Returns:
- The bytes.
getLength
public long getLength()
- Description copied from interface:
BinaryStream
- Retrieve the length of the input stream
- Specified by:
getLength
in interface BinaryStream
- Returns:
- The input stream length
release
public void release()
- Description copied from interface:
BinaryStream
- Release any underlying resources.
- Specified by:
release
in interface BinaryStream
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.