/** * Constructor for the <code>PartSeriesConsumer</code> object. This * will create a consumer that is capable of breaking an upload in * to individual parts so that they can be accessed and used by * the receiver of the HTTP request message. * * @param allocator this is used to allocate the internal buffer * @param boundary this is the boundary used for the upload * @param length this is the number of bytes the upload should be */ public PartSeriesConsumer(Allocator allocator, byte[] boundary, long length) { this(allocator, new PartData(), boundary, length); }
/** * 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 boundary this is the message boundary for the body part */ public PartBodyConsumer(Allocator allocator, Segment segment, byte[] boundary) { this(allocator, segment, new PartData(), boundary); }
/** * 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 boundary this is the message boundary for the body part */ public PartBodyConsumer(Allocator allocator, Segment segment, byte[] boundary) { this(allocator, segment, new PartData(), boundary); }
/** * Constructor for the <code>PartSeriesConsumer</code> object. This * will create a consumer that is capable of breaking an upload in * to individual parts so that they can be accessed and used by * the receiver of the HTTP request message. * * @param allocator this is used to allocate the internal buffer * @param boundary this is the boundary used for the upload * @param length this is the number of bytes the upload should be */ public PartSeriesConsumer(Allocator allocator, byte[] boundary, long length) { this(allocator, new PartData(), boundary, length); }
/** * Constructor for the <code>PartSeriesConsumer</code> object. This * will create a consumer that is capable of breaking an upload in * to individual parts so that they can be accessed and used by * the receiver of the HTTP request message. * * @param allocator this is used to allocate the internal buffer * @param boundary this is the boundary used for the upload * @param length this is the number of bytes the upload should be */ public PartSeriesConsumer(Allocator allocator, byte[] boundary, long length) { this(allocator, new PartData(), boundary, length); }
/** * 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 boundary this is the message boundary for the body part */ public PartBodyConsumer(Allocator allocator, Segment segment, byte[] boundary) { this(allocator, segment, new PartData(), boundary); }