org.apache.axis.attachments
public class DimeBodyPart extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
data |
protected DimeTypeNameFormat |
dtnf |
protected byte[] |
id |
protected static org.apache.commons.logging.Log |
log |
protected byte[] |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
DimeBodyPart() |
|
DimeBodyPart(byte[] data,
DimeTypeNameFormat format,
java.lang.String type,
java.lang.String id)
Create a DIME Attachment Part.
|
|
DimeBodyPart(javax.activation.DataHandler dh,
DimeTypeNameFormat format,
java.lang.String type,
java.lang.String id)
Create a DIME Attachment Part.
|
|
DimeBodyPart(javax.activation.DataHandler dh,
java.lang.String id)
Create a DIME Attachment Part.
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
getDataSize() |
protected long |
getDataSize(javax.activation.DataHandler dh) |
protected void |
sendChunk(java.io.OutputStream os,
byte position,
byte[] data,
byte chunk) |
protected void |
sendChunk(java.io.OutputStream os,
byte position,
byte[] data,
int offset,
int length,
byte chunk) |
protected void |
sendHeader(java.io.OutputStream os,
byte position,
long length,
byte chunk) |
protected static org.apache.commons.logging.Log log
protected java.lang.Object data
protected DimeTypeNameFormat dtnf
protected byte[] type
protected byte[] id
protected DimeBodyPart()
public DimeBodyPart(byte[] data,
DimeTypeNameFormat format,
java.lang.String type,
java.lang.String id)
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.public DimeBodyPart(javax.activation.DataHandler dh,
DimeTypeNameFormat format,
java.lang.String type,
java.lang.String id)
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.public DimeBodyPart(javax.activation.DataHandler dh,
java.lang.String id)
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.protected void sendChunk(java.io.OutputStream os,
byte position,
byte[] data,
byte chunk)
throws java.io.IOException
java.io.IOExceptionprotected void sendChunk(java.io.OutputStream os,
byte position,
byte[] data,
int offset,
int length,
byte chunk)
throws java.io.IOException
java.io.IOExceptionprotected void sendHeader(java.io.OutputStream os,
byte position,
long length,
byte chunk)
throws java.io.IOException
java.io.IOExceptionprotected long getDataSize()
protected long getDataSize(javax.activation.DataHandler dh)
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.