/** * Return the DataFlavors for this <code>DataContentHandler</code>. * * @return The DataFlavors */ public DataFlavor[] getTransferDataFlavors() { ActivationDataFlavor[] adf = getDataFlavors(); if (adf.length == 1) // the common case return new DataFlavor[] { adf[0] }; DataFlavor[] df = new DataFlavor[adf.length]; System.arraycopy(adf, 0, df, 0, adf.length); return df; }
/** * Return the DataFlavors for this <code>DataContentHandler</code>. * * @return The DataFlavors */ @Override public DataFlavor[] getTransferDataFlavors() { ActivationDataFlavor[] adf = getDataFlavors(); if (adf.length == 1) // the common case return new DataFlavor[] { adf[0] }; DataFlavor[] df = new DataFlavor[adf.length]; System.arraycopy(adf, 0, df, 0, adf.length); return df; }
/** * 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 DataFlavors for this <code>DataContentHandler</code>. * * @return The DataFlavors */ @Override public DataFlavor[] getTransferDataFlavors() { ActivationDataFlavor[] adf = getDataFlavors(); if (adf.length == 1) // the common case return new DataFlavor[] { adf[0] }; DataFlavor[] df = new DataFlavor[adf.length]; System.arraycopy(adf, 0, df, 0, adf.length); return df; }
/** * Return the DataFlavors for this <code>DataContentHandler</code>. * * @return The DataFlavors */ @Override public DataFlavor[] getTransferDataFlavors() { ActivationDataFlavor[] adf = getDataFlavors(); if (adf.length == 1) // the common case return new DataFlavor[] { adf[0] }; DataFlavor[] df = new DataFlavor[adf.length]; System.arraycopy(adf, 0, df, 0, adf.length); return df; }
/** * Return the DataFlavors for this <code>DataContentHandler</code>. * * @return The DataFlavors */ @Override public DataFlavor[] getTransferDataFlavors() { ActivationDataFlavor[] adf = getDataFlavors(); if (adf.length == 1) // the common case return new DataFlavor[] { adf[0] }; DataFlavor[] df = new DataFlavor[adf.length]; System.arraycopy(adf, 0, df, 0, adf.length); return df; }
/** * Return the DataFlavors for this <code>DataContentHandler</code>. * * @return The DataFlavors */ @Override public DataFlavor[] getTransferDataFlavors() { ActivationDataFlavor[] adf = getDataFlavors(); if (adf.length == 1) // the common case return new DataFlavor[] { adf[0] }; DataFlavor[] df = new DataFlavor[adf.length]; System.arraycopy(adf, 0, df, 0, adf.length); return df; }
/** * Return the DataFlavors for this <code>DataContentHandler</code>. * * @return The DataFlavors */ public ActivationDataFlavor[] getTransferDataFlavors() { return getDataFlavors().clone(); }
/** * 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; } }