Class DataEntity

java.lang.Object
com.luciad.containers.DataEntity
All Implemented Interfaces:
AutoCloseable

public final class DataEntity extends Object implements AutoCloseable
Represents a blob of data.

A binary large object is a collection of binary data stored as a single entity. Blobs are typically images, audio or other multimedia objects.

The mime-type indicates how to interpret the data 'blob'.

  • Constructor Details Link icon

    • DataEntity Link icon

      public DataEntity(@NotNull ByteBuffer data, @NotNull String mimeType)
      Constructs the data entity.
      Parameters:
      data - the data.
      mimeType - the mime-type of the data.
  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getData Link icon

      @NotNull public ByteBuffer getData()
      Returns the data.
      Returns:
      the data.
    • getMimeType Link icon

      @NotNull public String getMimeType()
      Returns the mime-type of the data.
      Returns:
      the mime-type of the data.