Class RawData


  • public final class RawData
    extends java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getInternalData()
      Returns the internal byte array containing the actual data received
      java.lang.String toString()
      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 Detail

      • RawData

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

      • getInternalData

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

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