Create Multipart

Is it possible to create a multipart stream from you class?