talx.util
Class MessageUtils.ByteArrayDataSource
java.lang.Object
talx.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageUtils.ByteArrayDataSource
public MessageUtils.ByteArrayDataSource(byte[] b,
java.lang.String contentType)
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
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.