first commit
This commit is contained in:
commit
4d332ef662
27586 changed files with 3281783 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
package javax.activation;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
class DataHandlerDataSource implements DataSource {
|
||||
DataHandler dataHandler = null;
|
||||
|
||||
public DataHandlerDataSource(DataHandler paramDataHandler) {
|
||||
this.dataHandler = paramDataHandler;
|
||||
}
|
||||
|
||||
public InputStream getInputStream() throws IOException {
|
||||
return this.dataHandler.getInputStream();
|
||||
}
|
||||
|
||||
public OutputStream getOutputStream() throws IOException {
|
||||
return this.dataHandler.getOutputStream();
|
||||
}
|
||||
|
||||
public String getContentType() {
|
||||
return this.dataHandler.getContentType();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.dataHandler.getName();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue