Java Code Examples for com.sun.xml.internal.messaging.saaj.util.FastInfosetReflection#FastInfosetSource_new

The following examples show how to use com.sun.xml.internal.messaging.saaj.util.FastInfosetReflection#FastInfosetSource_new . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FastInfosetDataContentHandler.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * return the Transfer Data of type DataFlavor from InputStream
 * @param df The DataFlavor.
 * @param ins The InputStream corresponding to the data.
 * @return The constructed Object.
 */
public Object getTransferData(DataFlavor flavor, DataSource dataSource)
    throws IOException
{
    if (flavor.getMimeType().startsWith("application/fastinfoset")) {
        try {
            if (flavor.getRepresentationClass().getName().equals(STR_SRC)) {
                return FastInfosetReflection.FastInfosetSource_new(
                    dataSource.getInputStream());
            }
        }
        catch (Exception e) {
            throw new IOException(e.getMessage());
        }
    }
    return null;
}
 
Example 2
Source File: FastInfosetDataContentHandler.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * return the Transfer Data of type DataFlavor from InputStream
 * @param df The DataFlavor.
 * @param ins The InputStream corresponding to the data.
 * @return The constructed Object.
 */
public Object getTransferData(DataFlavor flavor, DataSource dataSource)
    throws IOException
{
    if (flavor.getMimeType().startsWith("application/fastinfoset")) {
        try {
            if (flavor.getRepresentationClass().getName().equals(STR_SRC)) {
                return FastInfosetReflection.FastInfosetSource_new(
                    dataSource.getInputStream());
            }
        }
        catch (Exception e) {
            throw new IOException(e.getMessage());
        }
    }
    return null;
}
 
Example 3
Source File: FastInfosetDataContentHandler.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * return the Transfer Data of type DataFlavor from InputStream
 * @param df The DataFlavor.
 * @param ins The InputStream corresponding to the data.
 * @return The constructed Object.
 */
public Object getTransferData(DataFlavor flavor, DataSource dataSource)
    throws IOException
{
    if (flavor.getMimeType().startsWith("application/fastinfoset")) {
        try {
            if (flavor.getRepresentationClass().getName().equals(STR_SRC)) {
                return FastInfosetReflection.FastInfosetSource_new(
                    dataSource.getInputStream());
            }
        }
        catch (Exception e) {
            throw new IOException(e.getMessage());
        }
    }
    return null;
}
 
Example 4
Source File: FastInfosetDataContentHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * return the Transfer Data of type DataFlavor from InputStream
 * @param df The DataFlavor.
 * @param ins The InputStream corresponding to the data.
 * @return The constructed Object.
 */
public Object getTransferData(DataFlavor flavor, DataSource dataSource)
    throws IOException
{
    if (flavor.getMimeType().startsWith("application/fastinfoset")) {
        try {
            if (flavor.getRepresentationClass().getName().equals(STR_SRC)) {
                return FastInfosetReflection.FastInfosetSource_new(
                    dataSource.getInputStream());
            }
        }
        catch (Exception e) {
            throw new IOException(e.getMessage());
        }
    }
    return null;
}
 
Example 5
Source File: FastInfosetDataContentHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Return the Transfer Data of type DataFlavor from InputStream
 * @param flavor The DataFlavor.
 * @param dataSource DataSource.
 * @return The constructed Object.
 * @exception IOException in case of an I/O error
 */
@Override
public Object getTransferData(DataFlavor flavor, DataSource dataSource)
    throws IOException
{
    if (flavor.getMimeType().startsWith("application/fastinfoset")) {
        try {
            if (flavor.getRepresentationClass().getName().equals(STR_SRC)) {
                return FastInfosetReflection.FastInfosetSource_new(
                    dataSource.getInputStream());
            }
        }
        catch (Exception e) {
            throw new IOException(e.getMessage());
        }
    }
    return null;
}
 
Example 6
Source File: FastInfosetDataContentHandler.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * return the Transfer Data of type DataFlavor from InputStream
 * @param df The DataFlavor.
 * @param ins The InputStream corresponding to the data.
 * @return The constructed Object.
 */
public Object getTransferData(DataFlavor flavor, DataSource dataSource)
    throws IOException
{
    if (flavor.getMimeType().startsWith("application/fastinfoset")) {
        try {
            if (flavor.getRepresentationClass().getName().equals(STR_SRC)) {
                return FastInfosetReflection.FastInfosetSource_new(
                    dataSource.getInputStream());
            }
        }
        catch (Exception e) {
            throw new IOException(e.getMessage());
        }
    }
    return null;
}
 
Example 7
Source File: FastInfosetDataContentHandler.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * return the Transfer Data of type DataFlavor from InputStream
 * @param df The DataFlavor.
 * @param ins The InputStream corresponding to the data.
 * @return The constructed Object.
 */
public Object getTransferData(DataFlavor flavor, DataSource dataSource)
    throws IOException
{
    if (flavor.getMimeType().startsWith("application/fastinfoset")) {
        try {
            if (flavor.getRepresentationClass().getName().equals(STR_SRC)) {
                return FastInfosetReflection.FastInfosetSource_new(
                    dataSource.getInputStream());
            }
        }
        catch (Exception e) {
            throw new IOException(e.getMessage());
        }
    }
    return null;
}
 
Example 8
Source File: FastInfosetDataContentHandler.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * return the Transfer Data of type DataFlavor from InputStream
 * @param df The DataFlavor.
 * @param ins The InputStream corresponding to the data.
 * @return The constructed Object.
 */
public Object getTransferData(DataFlavor flavor, DataSource dataSource)
    throws IOException
{
    if (flavor.getMimeType().startsWith("application/fastinfoset")) {
        try {
            if (flavor.getRepresentationClass().getName().equals(STR_SRC)) {
                return FastInfosetReflection.FastInfosetSource_new(
                    dataSource.getInputStream());
            }
        }
        catch (Exception e) {
            throw new IOException(e.getMessage());
        }
    }
    return null;
}
 
Example 9
Source File: FastInfosetDataContentHandler.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Object getContent(DataSource dataSource) throws IOException {
    try {
        return FastInfosetReflection.FastInfosetSource_new(
            dataSource.getInputStream());
    }
    catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}
 
Example 10
Source File: FastInfosetDataContentHandler.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Object getContent(DataSource dataSource) throws IOException {
    try {
        return FastInfosetReflection.FastInfosetSource_new(
            dataSource.getInputStream());
    }
    catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}
 
Example 11
Source File: FastInfosetDataContentHandler.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Object getContent(DataSource dataSource) throws IOException {
    try {
        return FastInfosetReflection.FastInfosetSource_new(
            dataSource.getInputStream());
    }
    catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}
 
Example 12
Source File: FastInfosetDataContentHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Object getContent(DataSource dataSource) throws IOException {
    try {
        return FastInfosetReflection.FastInfosetSource_new(
            dataSource.getInputStream());
    }
    catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}
 
Example 13
Source File: FastInfosetDataContentHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Object getContent(DataSource dataSource) throws IOException {
    try {
        return FastInfosetReflection.FastInfosetSource_new(
            dataSource.getInputStream());
    }
    catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}
 
Example 14
Source File: FastInfosetDataContentHandler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Object getContent(DataSource dataSource) throws IOException {
    try {
        return FastInfosetReflection.FastInfosetSource_new(
            dataSource.getInputStream());
    }
    catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}
 
Example 15
Source File: FastInfosetDataContentHandler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Object getContent(DataSource dataSource) throws IOException {
    try {
        return FastInfosetReflection.FastInfosetSource_new(
            dataSource.getInputStream());
    }
    catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}
 
Example 16
Source File: FastInfosetDataContentHandler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Object getContent(DataSource dataSource) throws IOException {
    try {
        return FastInfosetReflection.FastInfosetSource_new(
            dataSource.getInputStream());
    }
    catch (Exception e) {
        throw new IOException(e.getMessage());
    }
}