com.sun.xml.ws.encoding
Class DataHandlerDataSource

java.lang.Object
  extended by com.sun.xml.ws.encoding.DataHandlerDataSource
All Implemented Interfaces:
javax.activation.DataSource

public class DataHandlerDataSource
extends Object
implements javax.activation.DataSource

DataSource impl using a DataHandler


Constructor Summary
DataHandlerDataSource(javax.activation.DataHandler dh)
           
 
Method Summary
 String getContentType()
          Returns the MIME type of the data represented by this object.
 InputStream getInputStream()
          Returns an InputStream representing this object.
 String getName()
          Returns the name of this object.
 OutputStream getOutputStream()
          Returns the OutputStream for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataHandlerDataSource

public DataHandlerDataSource(javax.activation.DataHandler dh)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Returns an InputStream representing this object.

Specified by:
getInputStream in interface javax.activation.DataSource
Returns:
the InputStream
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Returns the OutputStream for this object.

Specified by:
getOutputStream in interface javax.activation.DataSource
Returns:
the OutputStream
Throws:
IOException

getContentType

public String getContentType()
Returns the MIME type of the data represented by this object.

Specified by:
getContentType in interface javax.activation.DataSource
Returns:
the MIME type

getName

public String getName()
Returns the name of this object.

Specified by:
getName in interface javax.activation.DataSource
Returns:
the name of this object


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.