com.jaspersoft.jasperserver.ws.axis2
Class Axis2ByteArrayDataSource

java.lang.Object
  extended by com.jaspersoft.jasperserver.ws.axis2.Axis2ByteArrayDataSource
All Implemented Interfaces:
javax.activation.DataSource

public class Axis2ByteArrayDataSource
extends java.lang.Object
implements javax.activation.DataSource

This class is used to transfer file usimg MTOM and SOAP with Attachments

Author:
gtoffoli

Constructor Summary
Axis2ByteArrayDataSource(java.lang.String name, byte[] byteArray)
          Creates a new instance of ResourceDataSource
 
Method Summary
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis2ByteArrayDataSource

public Axis2ByteArrayDataSource(java.lang.String name,
                                byte[] byteArray)
Creates a new instance of ResourceDataSource

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface javax.activation.DataSource
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in interface javax.activation.DataSource
Throws:
java.io.IOException

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.activation.DataSource

getName

public java.lang.String getName()
Specified by:
getName in interface javax.activation.DataSource


Copyright © 2007. All Rights Reserved.