Class RawData

java.lang.Object
com.basistech.rosette.dm.RawData
All Implemented Interfaces:
Serializable

public class RawData extends Object implements Serializable
A container for incoming raw data (bytes). AnnotatedText does not store bytes; this class serves components that consume bytes, e.g. encoding identification.
See Also:
  • Constructor Details

    • RawData

      public RawData(ByteBuffer data, Map<String,List<String>> metadata)
      Constructs from a buffer of data and some metadata.
      Parameters:
      data - the binary data
      metadata - metadata, such as mime type, creation date, or the like
  • Method Details

    • getData

      public ByteBuffer getData()
      Returns the raw data.
      Returns:
      the raw data
    • getMetadata

      public Map<String,List<String>> getMetadata()
      Returns the metadata.
      Returns:
      the metadata