- Added missing methods to DataHolder
- Added placeholders for missing classes
- Cleanroom, Copyright ASF assignable, etc

Maas

Attachment: activation-missing-files.jar
Description: Zip archive

Index: incubator-geronimo/specs/activation/src/java/javax/activation/DataHandler.java
===================================================================
RCS file: /home/cvspublic/incubator-geronimo/specs/activation/src/java/javax/activation/DataHandler.java,v
retrieving revision 1.1
diff -u -r1.1 DataHandler.java
--- incubator-geronimo/specs/activation/src/java/javax/activation/DataHandler.java	16 Aug 2003 01:55:47 -0000	1.1
+++ incubator-geronimo/specs/activation/src/java/javax/activation/DataHandler.java	16 Aug 2003 14:22:17 -0000
@@ -59,16 +59,109 @@
 // DO NOT add / change / or delete method signatures!
 //
 package javax.activation;
+
+import java.awt.datatransfer.DataFlavor;
+import java.awt.datatransfer.UnsupportedFlavorException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URL;
+
 /**
  * @version $Revision: 1.1 $ $Date: 2003/08/16 01:55:47 $
  * @deprecated Don't use this for real work; just as a place-holder to compile
  */
 public class DataHandler {
     private DataSource _ds;
+
     public DataHandler(DataSource ds) {
         _ds = ds;
     }
+
+    public DataHandler(Object obj,
+                       String mimeType) {
+        /[EMAIL PROTECTED] implement*/
+    }
+
+    public DataHandler(URL url) {
+        /[EMAIL PROTECTED] implement*/
+    }
+
+    public DataSource getDataSource() {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public String getName() {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
     public String getContentType() {
-        return _ds.getContentType();
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public InputStream getInputStream() throws IOException {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+
+    }
+
+    public void writeTo(OutputStream os) throws IOException {
+        /[EMAIL PROTECTED] implement*/
+
+    }
+
+    public OutputStream getOutputStream() throws IOException {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public synchronized DataFlavor[] getTransferDataFlavors() {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public boolean isDataFlavorSupported(DataFlavor flavor) {
+        /[EMAIL PROTECTED] implement*/
+        return false;
+    }
+
+    public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public synchronized void setCommandMap(CommandMap commandMap) {
+        /[EMAIL PROTECTED] implement*/
+    }
+
+    public CommandInfo[] getPreferredCommands() {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public CommandInfo[] getAllCommands() {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public CommandInfo getCommand(String cmdName) {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public Object getContent() throws IOException {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public Object getBean(CommandInfo cmdinfo) {
+        /[EMAIL PROTECTED] implement*/
+        return null;
+    }
+
+    public static synchronized void setDataContentHandlerFactory(DataContentHandlerFactory newFactory) {
     }
 }

Reply via email to