/** * Return the Transfer Data of type DataFlavor from InputStream. * * @param df The DataFlavor * @param ds The DataSource corresponding to the data * @return String object */ public Object getTransferData(DataFlavor df, DataSource ds) throws IOException { ActivationDataFlavor[] adf = getDataFlavors(); for (int i = 0; i < adf.length; i++) { // use ActivationDataFlavor.equals, which properly // ignores Content-Type parameters in comparison if (adf[i].equals(df)) return getData(adf[i], ds); } return null; } }
/** * Return the Transfer Data of type DataFlavor from InputStream. * * @param df The DataFlavor * @param ds The DataSource corresponding to the data * @return the object * @exception IOException for errors reading the data */ @Override public Object getTransferData(DataFlavor df, DataSource ds) throws IOException { ActivationDataFlavor[] adf = getDataFlavors(); for (int i = 0; i < adf.length; i++) { // use ActivationDataFlavor.equals, which properly // ignores Content-Type parameters in comparison if (adf[i].equals(df)) return getData(adf[i], ds); } return null; } }
/** * Return the Transfer Data of type DataFlavor from InputStream. * * @param df The DataFlavor * @param ds The DataSource corresponding to the data * @return the object * @exception IOException for errors reading the data */ @Override public Object getTransferData(DataFlavor df, DataSource ds) throws IOException { ActivationDataFlavor[] adf = getDataFlavors(); for (int i = 0; i < adf.length; i++) { // use ActivationDataFlavor.equals, which properly // ignores Content-Type parameters in comparison if (adf[i].equals(df)) return getData(adf[i], ds); } return null; } }
/** * Return the Transfer Data of type DataFlavor from InputStream. * * @param df The DataFlavor * @param ds The DataSource corresponding to the data * @return the object * @exception IOException for errors reading the data */ public Object getTransferData(ActivationDataFlavor df, DataSource ds) throws IOException { ActivationDataFlavor[] adf = getDataFlavors(); for (int i = 0; i < adf.length; i++) { // use ActivationDataFlavor.equals, which properly // ignores Content-Type parameters in comparison if (adf[i].equals(df)) return getData(adf[i], ds); } return null; } }
/** * Return the Transfer Data of type DataFlavor from InputStream. * * @param df The DataFlavor * @param ds The DataSource corresponding to the data * @return the object * @exception IOException for errors reading the data */ @Override public Object getTransferData(DataFlavor df, DataSource ds) throws IOException { ActivationDataFlavor[] adf = getDataFlavors(); for (int i = 0; i < adf.length; i++) { // use ActivationDataFlavor.equals, which properly // ignores Content-Type parameters in comparison if (adf[i].equals(df)) return getData(adf[i], ds); } return null; } }
/** * Return the Transfer Data of type DataFlavor from InputStream. * * @param df The DataFlavor * @param ds The DataSource corresponding to the data * @return the object * @exception IOException for errors reading the data */ @Override public Object getTransferData(DataFlavor df, DataSource ds) throws IOException { ActivationDataFlavor[] adf = getDataFlavors(); for (int i = 0; i < adf.length; i++) { // use ActivationDataFlavor.equals, which properly // ignores Content-Type parameters in comparison if (adf[i].equals(df)) return getData(adf[i], ds); } return null; } }
/** * Return the Transfer Data of type DataFlavor from InputStream. * * @param df The DataFlavor * @param ds The DataSource corresponding to the data * @return the object * @exception IOException for errors reading the data */ @Override public Object getTransferData(DataFlavor df, DataSource ds) throws IOException { ActivationDataFlavor[] adf = getDataFlavors(); for (int i = 0; i < adf.length; i++) { // use ActivationDataFlavor.equals, which properly // ignores Content-Type parameters in comparison if (adf[i].equals(df)) return getData(adf[i], ds); } return null; } }