1 22 package javax.activation; 23 24 import java.io.InputStream ; 26 import java.io.OutputStream ; 27 import java.io.IOException ; 28 29 34 class DataHandlerDataSource 35 implements DataSource 36 { 37 38 42 45 DataHandler dataHandler; 46 47 48 52 56 public DataHandlerDataSource(DataHandler handler) 57 { 58 dataHandler = handler; 59 } 61 62 66 71 public InputStream getInputStream() throws IOException 72 { 73 return dataHandler.getInputStream(); 74 } 76 81 public OutputStream getOutputStream() throws IOException 82 { 83 return dataHandler.getOutputStream(); 84 } 86 90 public String getContentType() 91 { 92 return dataHandler.getContentType(); 93 } 95 99 public String getName() 100 { 101 return dataHandler.getName(); 102 } 104 105 } | Popular Tags |