org.apache.axis.attachments
Class DimeBodyPart
java.lang.Objectorg.apache.axis.attachments.DimeBodyPart
public class DimeBodyPart
extends java.lang.Object
Holds one attachment DIME part.
protected long | getDataSize()
|
protected long | getDataSize(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)
|
data
protected Object data
log
protected static Log log
type
protected byte[] type
DimeBodyPart
protected DimeBodyPart()
DimeBodyPart
public DimeBodyPart(DataHandler dh,
String id) Create a DIME Attachment Part.
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.
DimeBodyPart
public DimeBodyPart(DataHandler dh,
DimeTypeNameFormat format,
String type,
String id) Create a DIME Attachment Part.
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
public DimeBodyPart(byte[] data,
DimeTypeNameFormat format,
String type,
String id) Create a DIME Attachment Part.
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.
getDataSize
protected long getDataSize()
getDataSize
protected long getDataSize(DataHandler dh)
sendChunk
protected void sendChunk(java.io.OutputStream os,
byte position,
byte[] data,
byte chunk)
throws IOException
sendChunk
protected void sendChunk(java.io.OutputStream os,
byte position,
byte[] data,
int offset,
int length,
byte chunk)
throws IOException
sendHeader
protected void sendHeader(java.io.OutputStream os,
byte position,
long length,
byte chunk)
throws IOException
Copyright © 2005 Apache Web Services Project. All Rights Reserved.