org.sourcejammer.util
Class SendBytesDataSource

java.lang.Object
  |
  +--org.sourcejammer.util.SendBytesDataSource
All Implemented Interfaces:
javax.activation.DataSource

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

Title: $FileName: SendBytesDataSource.java$

Version:
$VerNum: 3$ $KeyWordsOff: $

DataSource for SendBytes object. Should turn into a SOAP attachment.
Author:
$AuthorName: Rob MacGrogan$

Field Summary
private  byte[] by
           
private static java.lang.String CONTENT_TYPE
           
 
Constructor Summary
SendBytesDataSource()
           
 
Method Summary
 byte[] getBytes()
           
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream()
           
 void setBytes(byte[] by)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE

private static final java.lang.String CONTENT_TYPE
See Also:
Constant Field Values

by

private byte[] by
Constructor Detail

SendBytesDataSource

public SendBytesDataSource()
Method Detail

setBytes

public void setBytes(byte[] by)

getBytes

public byte[] getBytes()

getContentType

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

getInputStream

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

getName

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

getOutputStream

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


Copyright © 2003 Soucejammer project.