Class MultipartPart<T extends PartBase>

    • Field Detail

      • CRLF_BYTES

        protected static final byte[] CRLF_BYTES
        Carriage return/linefeed as a byte array
      • EXTRA_BYTES

        protected static final byte[] EXTRA_BYTES
        Extra characters as a byte array
      • part

        protected final T extends PartBase part
      • boundary

        protected final byte[] boundary
    • Method Detail

      • length

        public long length()
      • isTargetSlow

        public boolean isTargetSlow()
      • transferTo

        public long transferTo​(io.netty.buffer.ByteBuf target)
                        throws IOException
        Throws:
        IOException
      • getContentLength

        protected abstract long getContentLength()
      • transferContentTo

        protected abstract long transferContentTo​(io.netty.buffer.ByteBuf target)
                                           throws IOException
        Throws:
        IOException
      • transfer

        protected long transfer​(io.netty.buffer.ByteBuf source,
                                io.netty.buffer.ByteBuf target,
                                MultipartState sourceFullyWrittenState)
      • computePreContentLength

        protected int computePreContentLength()
      • computePreContentBytes

        protected io.netty.buffer.ByteBuf computePreContentBytes​(int preContentLength)
      • computePostContentLength

        protected int computePostContentLength()
      • computePostContentBytes

        protected io.netty.buffer.ByteBuf computePostContentBytes​(int postContentLength)
      • visitStart

        protected void visitStart​(PartVisitor visitor)
      • visitDispositionHeader

        protected void visitDispositionHeader​(PartVisitor visitor)
      • visitContentTypeHeader

        protected void visitContentTypeHeader​(PartVisitor visitor)
      • visitTransferEncodingHeader

        protected void visitTransferEncodingHeader​(PartVisitor visitor)
      • visitContentIdHeader

        protected void visitContentIdHeader​(PartVisitor visitor)
      • visitCustomHeaders

        protected void visitCustomHeaders​(PartVisitor visitor)
      • visitEndOfHeaders

        protected void visitEndOfHeaders​(PartVisitor visitor)
      • visitPreContent

        protected void visitPreContent​(PartVisitor visitor)
      • visitPostContent

        protected void visitPostContent​(PartVisitor visitor)