Examples of XMLDecoder


Examples of org.apache.cayenne.xml.XMLDecoder

            Reader in = new InputStreamReader(resource.openStream(), "UTF-8");

            // TODO: andrus, 04/18/2006 - an inefficiency in XMLDecoder - it
            // doesn't cache the mapping

            XMLDecoder decoder = new XMLDecoder();
            JpaEntityMap entityMap = (JpaEntityMap) decoder.decode(in, mappingURL
                    .toExternalForm());

            return entityMap;
        }
        catch (Exception e) {
View Full Code Here

Examples of org.apache.log4j.xml.XMLDecoder

                public void run() {
                    logger.debug("Loading files: " + fileList);
                    for (Iterator iter = fileList.iterator(); iter.hasNext();) {
                        File  file = (File) iter.next();
                        final Decoder decoder = new XMLDecoder();
                        try {
                            getStatusBar().setMessage("Loading " + file.getAbsolutePath() + "...");
                            FileLoadAction.importURL(handler, decoder, file
                                    .getName(), file.toURL());
                        } catch (Exception e) {
View Full Code Here

Examples of org.gocha.xml.XMLDecoder

    {
        if (xmlDocument == null) {
            throw new IllegalArgumentException("xmlDocument == null");
        }

        XMLDecoder decoder = new XMLDecoder();
        configureXMLDecoder(decoder);

        Object o = decoder.parse(xmlDocument);
        return (o instanceof Pattern) ? (Pattern)o : null;
    }
View Full Code Here

Examples of org.opcfoundation.ua.encoding.xml.XmlDecoder

            StringWriter sw = new StringWriter();
            marshaller.marshal(jaxbElement, sw);

            XmlElement xmlElement = new XmlElement(sw.toString());
            XmlDecoder xmlDecoder = new XmlDecoder(xmlElement, ENCODER_CONTEXT);
            Object o = xmlDecoder.getVariantContents();

            return new DataValue(new Variant(o));
        } catch (Throwable t) {
            throw new RuntimeException("unable to parse Value: " + value, t);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.