home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / javax / activation / DataHandlerDataSource.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  705 b   |  30 lines

  1. package javax.activation;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5. import java.io.OutputStream;
  6.  
  7. class DataHandlerDataSource implements DataSource {
  8.    DataHandler dataHandler = null;
  9.  
  10.    public DataHandlerDataSource(DataHandler var1) {
  11.       this.dataHandler = var1;
  12.    }
  13.  
  14.    public InputStream getInputStream() throws IOException {
  15.       return this.dataHandler.getInputStream();
  16.    }
  17.  
  18.    public OutputStream getOutputStream() throws IOException {
  19.       return this.dataHandler.getOutputStream();
  20.    }
  21.  
  22.    public String getContentType() {
  23.       return this.dataHandler.getContentType();
  24.    }
  25.  
  26.    public String getName() {
  27.       return this.dataHandler.getName();
  28.    }
  29. }
  30.