/** * Constructor for the <code>PartBodyConsumer</code> object. This * is used to create a consumer that reads the body of a part in * a multipart request body. The terminal token must be provided * so that the end of the part body can be determined. * * @param allocator this is used to allocate the internal buffer * @param segment this represents the headers for the part body * @param series this is the part list that this body belongs in * @param boundary this is the message boundary for the body part */ public PartBodyConsumer(Allocator allocator, Segment segment, PartSeries series, byte[] boundary) { this.content = new ContentConsumer(allocator, segment, series, boundary); this.token = new TokenConsumer(allocator, LINE); }
/** * Constructor for the <code>PartBodyConsumer</code> object. This * is used to create a consumer that reads the body of a part in * a multipart request body. The terminal token must be provided * so that the end of the part body can be determined. * * @param allocator this is used to allocate the internal buffer * @param segment this represents the headers for the part body * @param series this is the part list that this body belongs in * @param boundary this is the message boundary for the body part */ public PartBodyConsumer(Allocator allocator, Segment segment, PartSeries series, byte[] boundary) { this.content = new ContentConsumer(allocator, segment, series, boundary); this.token = new TokenConsumer(allocator, LINE); }
/** * Constructor for the <code>PartBodyConsumer</code> object. This * is used to create a consumer that reads the body of a part in * a multipart request body. The terminal token must be provided * so that the end of the part body can be determined. * * @param allocator this is used to allocate the internal buffer * @param segment this represents the headers for the part body * @param series this is the part list that this body belongs in * @param boundary this is the message boundary for the body part */ public PartBodyConsumer(Allocator allocator, Segment segment, PartSeries series, byte[] boundary) { this.content = new ContentConsumer(allocator, segment, series, boundary); this.token = new TokenConsumer(allocator, LINE); }