123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- package javax.activation;
- import java.io.InputStream;
- import java.io.IOException;
- import java.io.OutputStream;
- final class DataHandlerDataSource
- implements DataSource
- {
- final DataHandler dh;
- DataHandlerDataSource(DataHandler dh)
- {
- this.dh = dh;
- }
- public String getContentType()
- {
- return dh.getContentType();
- }
- public InputStream getInputStream()
- throws IOException
- {
- return dh.getInputStream();
- }
- public String getName()
- {
- return dh.getName();
- }
- public OutputStream getOutputStream()
- throws IOException
- {
- return dh.getOutputStream();
- }
- }
|