Interface BinaryData

All Known Implementing Classes:
BinaryDataBuffer, BinaryDataFile

public interface BinaryData
Interface for binary data.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Gets the binary data as an array of bytes.
    long
    Gets the size of underlying binary data.
    int
    Gets the id of this binary data.
    Gets an InputStream representing the binary data.
    int
    Gets the namespace id.
    int
    Gets the publication id of this binary data.
    Returns the id of the variant for this binary data.
  • Method Details

    • getId

      int getId()
      Gets the id of this binary data.
      Returns:
      The binary data id.
    • getNamespaceId

      int getNamespaceId()
      Gets the namespace id.
      Returns:
      namespace id
    • getPublicationId

      int getPublicationId()
      Gets the publication id of this binary data.
      Returns:
      The publication id.
    • getVariantId

      String getVariantId()
      Returns the id of the variant for this binary data.
    • getInputStream

      InputStream getInputStream() throws IOException
      Gets an InputStream representing the binary data.
      Returns:
      The binary data as an InputStream.
      Throws:
      IOException - If an error occurs accessing the binary data.
    • getBytes

      byte[] getBytes() throws IOException
      Gets the binary data as an array of bytes.
      Returns:
      byte[] representation of the binary data.
      Throws:
      IOException - If an error occurs accessing the binary data.
    • getDataSize

      long getDataSize()
      Gets the size of underlying binary data.
      Returns:
      The binary data size.