Class RawBucket


  • public class RawBucket
    extends XrootdBucket
    A bucket containing a header plus a number of bytes. This can be binary data, but a raw-bucket can also represent encryptet buckets of another type.
    Author:
    radicke, tzangerl
    See Also:
    XrootdBucket
    • Method Detail

      • dumpBytes

        public static void dumpBytes​(java.lang.StringBuilder builder,
                                     byte[] data)
      • dump

        public int dump​(java.lang.StringBuilder builder,
                        java.lang.String step,
                        int number)
        This usually will be called only if trace is enabled. We here imitate the XrootD XrdSutBuffer DUMP printout.
        Overrides:
        dump in class XrootdBucket
      • getContent

        public byte[] getContent()
      • serialize

        public void serialize​(io.netty.buffer.ByteBuf out)
        Overrides:
        serialize in class XrootdBucket
      • getSize

        public int getSize()
        Overrides:
        getSize in class XrootdBucket
        Returns:
        Length of the serialized bucket (in bytes)