talx x1.0.5

talx.util
Class MessageUtils.ByteArrayDataSource

java.lang.Object
  extended bytalx.util.MessageUtils.ByteArrayDataSource
All Implemented Interfaces:
javax.activation.DataSource
Enclosing class:
MessageUtils

public static class MessageUtils.ByteArrayDataSource
extends java.lang.Object
implements javax.activation.DataSource


Constructor Summary
MessageUtils.ByteArrayDataSource(byte[] b, java.lang.String contentType)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream()
          Always throws UnknownServiceException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageUtils.ByteArrayDataSource

public MessageUtils.ByteArrayDataSource(byte[] b,
                                        java.lang.String contentType)
Method Detail

getName

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

getContentType

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

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Always throws UnknownServiceException.

Specified by:
getOutputStream in interface javax.activation.DataSource
Throws:
java.io.IOException

getInputStream

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

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.