1 21 22 27 28 package javax.activation; 29 30 import java.awt.datatransfer.DataFlavor ; 31 import java.awt.datatransfer.UnsupportedFlavorException ; 32 import java.io.InputStream ; 33 import java.io.IOException ; 34 import java.io.OutputStream ; 35 import javax.activation.DataSource ; 36 37 51 52 public interface DataContentHandler { 53 61 public DataFlavor [] getTransferDataFlavors(); 62 63 75 public Object getTransferData(DataFlavor df, DataSource ds) 76 throws UnsupportedFlavorException , IOException ; 77 78 87 public Object getContent(DataSource ds) throws IOException ; 88 89 99 public void writeTo(Object obj, String mimeType, OutputStream os) 100 throws IOException ; 101 } 102 | Popular Tags |