public final class MCmultiPartBody
extends org.apache.http.entity.mime.content.AbstractContentBody
MCmultiPartBody
class encapsulates the multipart body data of DICOM WADO requestConstructor and Description |
---|
MCmultiPartBody(byte[] data,
org.apache.http.entity.ContentType contentType,
java.lang.String filename)
MCmultiPartBody constructor |
MCmultiPartBody(byte[] data,
java.lang.String mimeType,
java.lang.String filename)
MCmultiPartBody constructor |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength()
Gets the length of multipart body data
|
org.apache.http.entity.ContentType |
getContentType()
Gets
ContentType |
byte[] |
getData()
Gets the multipart body data
|
java.lang.String |
getFilename()
Gets the multipart body name
|
java.lang.String |
getTransferEncoding()
Gets the multipart encoding
|
void |
writeTo(java.io.OutputStream out)
Writes the multipart body data into
OutputStream |
public MCmultiPartBody(byte[] data, java.lang.String mimeType, java.lang.String filename)
MCmultiPartBody
constructordata
- Multipart body datamimeType
- Mime typefilename
- Multipart body namepublic MCmultiPartBody(byte[] data, org.apache.http.entity.ContentType contentType, java.lang.String filename)
MCmultiPartBody
constructordata
- Multipart body datacontentType
- Apache ContentType
content typefilename
- Multipart body namepublic java.lang.String getFilename()
public void writeTo(java.io.OutputStream out) throws java.io.IOException
OutputStream
out
- OutputStream
java.io.IOException
- if an I/O error occurs.In particular,
an IOException
may be thrown if the
output stream has been closed.public java.lang.String getTransferEncoding()
String
public long getContentLength()
public byte[] getData()
public org.apache.http.entity.ContentType getContentType()
ContentType
getContentType
in class org.apache.http.entity.mime.content.AbstractContentBody
ContentType
object