Class ContentHeaderPropertyWriter


  • public class ContentHeaderPropertyWriter
    extends java.lang.Object
    Generates an AMQP wire-protocol packet from a ContentHeader. Methods on this object are usually called from autogenerated code.
    • Field Detail

      • out

        private final ValueWriter out
        Accumulates our output
      • flagWord

        private int flagWord
        Current flags word being accumulated
      • bitCount

        private int bitCount
        Position within current flags word
    • Constructor Detail

      • ContentHeaderPropertyWriter

        public ContentHeaderPropertyWriter​(java.io.DataOutputStream out)
        Constructs a fresh ContentHeaderPropertyWriter.
    • Method Detail

      • emitFlagWord

        private void emitFlagWord​(boolean continuationBit)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writePresence

        public void writePresence​(boolean present)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • finishPresence

        public void finishPresence()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeShortstr

        public void writeShortstr​(java.lang.String str)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLongstr

        public void writeLongstr​(java.lang.String str)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLongstr

        public void writeLongstr​(LongString str)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeShort

        public void writeShort​(java.lang.Integer s)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLong

        public void writeLong​(java.lang.Integer l)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLonglong

        public void writeLonglong​(java.lang.Long ll)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTable

        public void writeTable​(java.util.Map<java.lang.String,​java.lang.Object> table)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeOctet

        public void writeOctet​(java.lang.Integer octet)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeOctet

        public void writeOctet​(int octet)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTimestamp

        public void writeTimestamp​(java.util.Date timestamp)
                            throws java.io.IOException
        Throws:
        java.io.IOException