org.hsqldb.types
Class BinaryData
- java.lang.Object
-
- org.hsqldb.types.BinaryData
-
-
Field Summary
Fields Modifier and Type Field and Description static BinaryDatasingleBitOnestatic BinaryDatasingleBitZerostatic BinaryDatazeroLengthBinarystatic byte[]zeroLengthBytes
-
Constructor Summary
Constructors Constructor and Description BinaryData(byte[] data, boolean clone)This constructor is used inside the engine when an already serialized byte[] is read from a file (.log, .script, .data or text table source).BinaryData(byte[] data, long bitLength)BinaryData(long length, java.io.DataInput stream)BinaryData(SessionInterface session, BlobData b1, BlobData b2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description longbitLength(SessionInterface session)BlobDataduplicate(SessionInterface session)booleanequals(java.lang.Object other)voidfree()java.io.InputStreamgetBinaryStream(SessionInterface session)java.io.InputStreamgetBinaryStream(SessionInterface session, long pos, long length)static BinaryDatagetBitData(byte[] data, long bitLength)BlobDatagetBlob(SessionInterface session, long pos, long length)byte[]getBytes()byte[]getBytes(SessionInterface session, long pos, int length)longgetId()intgetStreamBlockSize()inthashCode()booleanisBinary()booleanisBits()booleanisClosed()longlength(SessionInterface session)longnonZeroLength(SessionInterface session)longposition(SessionInterface session, BlobData pattern, long start)longposition(SessionInterface session, byte[] pattern, long start)voidsetBinaryStream(SessionInterface session, long pos, java.io.InputStream in)voidsetBytes(SessionInterface session, long pos, BlobData b, long offset, long length)voidsetBytes(SessionInterface session, long pos, byte[] bytes)voidsetBytes(SessionInterface session, long pos, byte[] bytes, int offset, int length)voidsetId(long id)voidsetSession(SessionInterface session)voidtruncate(SessionInterface session, long len)
-
-
-
Field Detail
-
singleBitZero
public static final BinaryData singleBitZero
-
singleBitOne
public static final BinaryData singleBitOne
-
zeroLengthBytes
public static final byte[] zeroLengthBytes
-
zeroLengthBinary
public static final BinaryData zeroLengthBinary
-
-
Constructor Detail
-
BinaryData
public BinaryData(byte[] data, boolean clone)This constructor is used inside the engine when an already serialized byte[] is read from a file (.log, .script, .data or text table source). In this case clone is false. When a byte[] is submitted as a parameter of PreparedStatement then clone is true.
-
BinaryData
public BinaryData(SessionInterface session, BlobData b1, BlobData b2)
-
BinaryData
public BinaryData(byte[] data, long bitLength)
-
BinaryData
public BinaryData(long length, java.io.DataInput stream)
-
-
Method Detail
-
getBitData
public static BinaryData getBitData(byte[] data, long bitLength)
-
length
public long length(SessionInterface session)
-
bitLength
public long bitLength(SessionInterface session)
-
getBytes
public byte[] getBytes(SessionInterface session, long pos, int length)
-
getBlob
public BlobData getBlob(SessionInterface session, long pos, long length)
-
getBinaryStream
public java.io.InputStream getBinaryStream(SessionInterface session)
- Specified by:
getBinaryStreamin interfaceBlobData
-
getBinaryStream
public java.io.InputStream getBinaryStream(SessionInterface session, long pos, long length)
- Specified by:
getBinaryStreamin interfaceBlobData
-
setBytes
public void setBytes(SessionInterface session, long pos, byte[] bytes, int offset, int length)
-
setBytes
public void setBytes(SessionInterface session, long pos, byte[] bytes)
-
setBytes
public void setBytes(SessionInterface session, long pos, BlobData b, long offset, long length)
-
setBinaryStream
public void setBinaryStream(SessionInterface session, long pos, java.io.InputStream in)
- Specified by:
setBinaryStreamin interfaceBlobData
-
truncate
public void truncate(SessionInterface session, long len)
-
duplicate
public BlobData duplicate(SessionInterface session)
-
position
public long position(SessionInterface session, byte[] pattern, long start)
-
position
public long position(SessionInterface session, BlobData pattern, long start)
-
nonZeroLength
public long nonZeroLength(SessionInterface session)
- Specified by:
nonZeroLengthin interfaceBlobData
-
getId
public long getId()
-
setId
public void setId(long id)
-
getStreamBlockSize
public int getStreamBlockSize()
- Specified by:
getStreamBlockSizein interfaceBlobData
-
setSession
public void setSession(SessionInterface session)
- Specified by:
setSessionin interfaceBlobData- Specified by:
setSessionin interfaceLobData
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG