Package com.volantis.shared.content

Examples of com.volantis.shared.content.ContentInput


        try {
            IFile file = (IFile) policyResource;

            // Read the model using JiBX
            is = file.getContents();
            ContentInput content = new BinaryContentInput(is);
            InternalPolicyFactory policyFactory =
                    InternalPolicyFactory.getInternalInstance();

            // Don't use schema validation, as we may have a partial layout,
            // with missing attributes and empty formats.
View Full Code Here


        try {
            final IFile file = (IFile) policyResource;

            // Read the model using JiBX
            is = file.getContents();
            final ContentInput content =
                new BinaryContentInput(is);
            final InternalPolicyFactory policyFactory =
                    InternalPolicyFactory.getInternalInstance();

            // Don't use schema validation, as we may have a partial layout,
View Full Code Here

                // Do validation of the output.

                CachingOutputStream cachedOutput =
                        ((CachingOutputStream) actualOutput);
                InputStream reader = cachedOutput.getCacheInputStream();
                ContentInput content = new BinaryContentInput(reader);

                try {
                    outputSchemaValidator.validate(content);
                } catch (SAXException e) {
                    if (inputError) {
View Full Code Here

TOP

Related Classes of com.volantis.shared.content.ContentInput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.