org.apache.axis2.transport.jms.iowrappers
Class BytesMessageDataSource
java.lang.Object
org.apache.axis2.transport.jms.iowrappers.BytesMessageDataSource
- All Implemented Interfaces:
- javax.activation.DataSource, org.apache.axiom.attachments.SizeAwareDataSource
public class BytesMessageDataSource
- extends java.lang.Object
- implements org.apache.axiom.attachments.SizeAwareDataSource
Data source implementation wrapping a JMS BytesMessage
.
Note that two input streams created by the same instance of this
class can not be used at the same time.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BytesMessageDataSource
public BytesMessageDataSource(javax.jms.BytesMessage message,
java.lang.String contentType)
BytesMessageDataSource
public BytesMessageDataSource(javax.jms.BytesMessage message)
getSize
public long getSize()
- Specified by:
getSize
in interface org.apache.axiom.attachments.SizeAwareDataSource
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface javax.activation.DataSource
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream
in interface javax.activation.DataSource
- Throws:
java.io.IOException
getName
public java.lang.String getName()
- Specified by:
getName
in interface javax.activation.DataSource
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Specified by:
getOutputStream
in interface javax.activation.DataSource
- Throws:
java.io.IOException
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.