Class RawData

java.lang.Object
com.yahoo.prelude.hitfield.RawData

public final class RawData extends Object
A representation of some binary data with unknown semantics
Author:
arnej27959
  • Constructor Summary

    Constructors
    Constructor
    Description
    RawData(byte[] content)
    Constructor, takes ownership of the given byte array.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the internal byte array containing the actual data received
    An ascii string; non-ascii data is escaped with hex notation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RawData

      public RawData(byte[] content)
      Constructor, takes ownership of the given byte array.
      Parameters:
      content - some bytes, handover
  • Method Details

    • getInternalData

      public byte[] getInternalData()
      Returns the internal byte array containing the actual data received
    • toString

      public String toString()
      An ascii string; non-ascii data is escaped with hex notation. NB: not always uniquely reversible.
      Overrides:
      toString in class Object