Java Code Examples for com.sun.xml.internal.messaging.saaj.util.transform.EfficientStreamingTransformer#newTransformer()

The following examples show how to use com.sun.xml.internal.messaging.saaj.util.transform.EfficientStreamingTransformer#newTransformer() . 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: EnvelopeImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Serialize to FI if boolean parameter set.
 */
public void output(OutputStream out, boolean isFastInfoset)
    throws IOException
{
    if (!isFastInfoset) {
        output(out);
    }
    else {
        try {
            // Run transform and generate FI output from content
            Source source = getContent();
            Transformer transformer = EfficientStreamingTransformer.newTransformer();
                transformer.transform(getContent(),
                    FastInfosetReflection.FastInfosetResult_new(out));
        }
        catch (Exception ex) {
            throw new IOException(ex.getMessage());
        }
    }
}
 
Example 2
Source File: EnvelopeImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Serialize to FI if boolean parameter set.
 */
public void output(OutputStream out, boolean isFastInfoset)
    throws IOException
{
    if (!isFastInfoset) {
        output(out);
    }
    else {
        try {
            // Run transform and generate FI output from content
            Source source = getContent();
            Transformer transformer = EfficientStreamingTransformer.newTransformer();
                transformer.transform(getContent(),
                    FastInfosetReflection.FastInfosetResult_new(out));
        }
        catch (Exception ex) {
            throw new IOException(ex.getMessage());
        }
    }
}
 
Example 3
Source File: EnvelopeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Serialize to FI if boolean parameter set.
 */
public void output(OutputStream out, boolean isFastInfoset)
    throws IOException
{
    if (!isFastInfoset) {
        output(out);
    }
    else {
        try {
            // Run transform and generate FI output from content
            Source source = getContent();
            Transformer transformer = EfficientStreamingTransformer.newTransformer();
                transformer.transform(getContent(),
                    FastInfosetReflection.FastInfosetResult_new(out));
        }
        catch (Exception ex) {
            throw new IOException(ex.getMessage());
        }
    }
}
 
Example 4
Source File: EnvelopeImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Serialize to FI if boolean parameter set.
 */
public void output(OutputStream out, boolean isFastInfoset)
    throws IOException
{
    if (!isFastInfoset) {
        output(out);
    }
    else {
        try {
            // Run transform and generate FI output from content
            Source source = getContent();
            Transformer transformer = EfficientStreamingTransformer.newTransformer();
                transformer.transform(getContent(),
                    FastInfosetReflection.FastInfosetResult_new(out));
        }
        catch (Exception ex) {
            throw new IOException(ex.getMessage());
        }
    }
}
 
Example 5
Source File: EnvelopeImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Serialize to FI if boolean parameter set.
 */
@Override
public void output(OutputStream out, boolean isFastInfoset)
    throws IOException
{
    if (!isFastInfoset) {
        output(out);
    }
    else {
        try {
            // Run transform and generate FI output from content
            Transformer transformer = EfficientStreamingTransformer.newTransformer();
                transformer.transform(getContent(),
                    FastInfosetReflection.FastInfosetResult_new(out));
        }
        catch (Exception ex) {
            throw new IOException(ex.getMessage());
        }
    }
}
 
Example 6
Source File: EnvelopeImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Serialize to FI if boolean parameter set.
 */
public void output(OutputStream out, boolean isFastInfoset)
    throws IOException
{
    if (!isFastInfoset) {
        output(out);
    }
    else {
        try {
            // Run transform and generate FI output from content
            Source source = getContent();
            Transformer transformer = EfficientStreamingTransformer.newTransformer();
                transformer.transform(getContent(),
                    FastInfosetReflection.FastInfosetResult_new(out));
        }
        catch (Exception ex) {
            throw new IOException(ex.getMessage());
        }
    }
}
 
Example 7
Source File: EnvelopeImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Serialize to FI if boolean parameter set.
 */
public void output(OutputStream out, boolean isFastInfoset)
    throws IOException
{
    if (!isFastInfoset) {
        output(out);
    }
    else {
        try {
            // Run transform and generate FI output from content
            Source source = getContent();
            Transformer transformer = EfficientStreamingTransformer.newTransformer();
                transformer.transform(getContent(),
                    FastInfosetReflection.FastInfosetResult_new(out));
        }
        catch (Exception ex) {
            throw new IOException(ex.getMessage());
        }
    }
}
 
Example 8
Source File: EnvelopeImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Serialize to FI if boolean parameter set.
 */
public void output(OutputStream out, boolean isFastInfoset)
    throws IOException
{
    if (!isFastInfoset) {
        output(out);
    }
    else {
        try {
            // Run transform and generate FI output from content
            Source source = getContent();
            Transformer transformer = EfficientStreamingTransformer.newTransformer();
                transformer.transform(getContent(),
                    FastInfosetReflection.FastInfosetResult_new(out));
        }
        catch (Exception ex) {
            throw new IOException(ex.getMessage());
        }
    }
}