org.apache.axis.attachments
public class DimeBodyPart extends Object
| Field Summary | |
|---|---|
| protected Object | data |
| protected DimeTypeNameFormat | dtnf |
| protected byte[] | id |
| protected static Log | log |
| protected byte[] | type |
| Constructor Summary | |
|---|---|
| protected | DimeBodyPart() |
| DimeBodyPart(byte[] data, DimeTypeNameFormat format, String type, String id)
Create a DIME Attachment Part. | |
| DimeBodyPart(DataHandler dh, DimeTypeNameFormat format, String type, String id)
Create a DIME Attachment Part. | |
| DimeBodyPart(DataHandler dh, String id)
Create a DIME Attachment Part. | |
| Method Summary | |
|---|---|
| protected long | getDataSize() |
| protected long | getDataSize(DataHandler dh) |
| protected void | sendChunk(OutputStream os, byte position, byte[] data, byte chunk) |
| protected void | sendChunk(OutputStream os, byte position, byte[] data, int offset, int length, byte chunk) |
| protected void | sendHeader(OutputStream os, byte position, long length, byte chunk) |
Parameters: data a byte array containing the data as the attachment. format the type format for the data. type the type of the data id the ID for the DIME part.
Parameters: dh the data for the attachment as a JAF datahadler. format the type format for the data. type the type of the data id the ID for the DIME part.
Parameters: dh the data for the attachment as a JAF datahadler. The type and foramt is derived from the DataHandler. id the ID for the DIME part.