public class

BinaryData

extends Object
java.lang.Object
   ↳ com.carto.core.BinaryData

Class Overview

A wrapper class for binary data (Blob).

Summary

Public Constructors
BinaryData()
Constructs an empty BinaryData object.
BinaryData(byte[] dataPtr)
Constructs a BinaryData object from a raw byte array.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
byte[] getData()
Returns the data array.
int hashCode()
Returns the hash value of this object.
long size()
Returns the size of the data
String toString()
Creates a string representation of this map bounds object, useful for logging.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BinaryData ()

Constructs an empty BinaryData object.

public BinaryData (byte[] dataPtr)

Constructs a BinaryData object from a raw byte array.

Parameters
dataPtr The raw pointer to the data.

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public byte[] getData ()

Returns the data array.

Returns
  • The data array.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public long size ()

Returns the size of the data

Returns
  • The size of the data.

public String toString ()

Creates a string representation of this map bounds object, useful for logging.

Returns
  • The string representation of this map bounds object.