Package com.basistech.rosette.dm
Class RawData
java.lang.Object
com.basistech.rosette.dm.RawData
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
RawData
Constructs from a buffer of data and some metadata.- Parameters:
data
- the binary datametadata
- metadata, such as mime type, creation date, or the like
-
-
Method Details
-
getData
Returns the raw data.- Returns:
- the raw data
-
getMetadata
Returns the metadata.- Returns:
- the metadata
-