/********************************************************************
* API for Servlets and SignatureGenerators in RAP
*  enabling extensible behaviors for RAP Digital Objects
* RAP - Repository Access Protocol
********************************************************************/
package ServletAPI;

/**
 * Each method described in a TypeSignature must have a return type of
 * MIMETypedStream[];  a Servlet's implementation of each method in a 
 * TypeSignature must return a populated (possibly empty) array of 
 * MIMETypedStreams.  Thus, this class is used to pass RAP Dissemination
 * results from the Servlet to the digital object (via a RAP GetDissemination
 * call).
 *
 * @author Christophe Blanchi
 * @author Sandy Payette
 * @author Naomi Dushay
 **/
public class MIMETypedStream
{
    /**
     * the MIME type of the byte array
     **/
    public String MIMEType;

    /**
     * the byte array which will contain data resulting from Servlet execution
     **/
    public byte[] data;

    public MIMETypedStream(String MIMEType, byte[] data)
    {
        this.MIMEType = MIMEType;
        this.data = data;
    }
}




