Package org.apache.axis.attachments
Class DimeBodyPart
java.lang.Object
org.apache.axis.attachments.DimeBodyPart
Holds one attachment DIME part.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DimeBodyPart
(byte[] data, DimeTypeNameFormat format, String type, String id) Create a DIME Attachment Part.DimeBodyPart
(DataHandler dh, String id) Create a DIME Attachment Part.DimeBodyPart
(DataHandler dh, DimeTypeNameFormat format, String type, String id) Create a DIME Attachment Part. -
Method Summary
Modifier and TypeMethodDescriptionprotected long
protected long
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)
-
Field Details
-
log
protected static org.apache.commons.logging.Log log -
data
-
dtnf
-
type
protected byte[] type -
id
protected byte[] id
-
-
Constructor Details
-
DimeBodyPart
protected DimeBodyPart() -
DimeBodyPart
Create a DIME Attachment Part.- Parameters:
data
- a byte array containing the data as the attachment.format
- the type format for the data.type
- the type of the dataid
- the ID for the DIME part.
-
DimeBodyPart
Create a DIME Attachment Part.- Parameters:
dh
- the data for the attachment as a JAF datahadler.format
- the type format for the data.type
- the type of the dataid
- the ID for the DIME part.
-
DimeBodyPart
Create a DIME Attachment 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.
-
-
Method Details
-
sendChunk
protected void sendChunk(OutputStream os, byte position, byte[] data, byte chunk) throws IOException - Throws:
IOException
-
sendChunk
protected void sendChunk(OutputStream os, byte position, byte[] data, int offset, int length, byte chunk) throws IOException - Throws:
IOException
-
sendHeader
protected void sendHeader(OutputStream os, byte position, long length, byte chunk) throws IOException - Throws:
IOException
-
getDataSize
protected long getDataSize() -
getDataSize
-