Examples of DataParser


Examples of play.data.parsing.DataParser

                if (request == null) {
                    throw new UnexpectedException("Current request undefined");
                } else {
                    String contentType = request.contentType;
                    if (contentType != null) {
                        DataParser dataParser = DataParser.parsers
                                .get(contentType);
                        if (dataParser != null) {
                            _mergeWith(dataParser.parse(request.body));
                        } else {
                            if (contentType.startsWith("text/")) {
                                _mergeWith(new TextParser().parse(request.body));
                            }
                        }
View Full Code Here

Examples of prefuse.data.parser.DataParser

        }
       
        protected Object parse(String s, Class type)
            throws DataParseException
        {
            DataParser dp = m_pf.getParser(type);
            return dp.parse(s);
        }
View Full Code Here

Examples of prefuse.data.parser.DataParser

        }
       
        protected Object parse(String s, Class type)
            throws DataParseException
        {
            DataParser dp = m_pf.getParser(type);
            return dp.parse(s);
        }
View Full Code Here

Examples of prefuse.data.parser.DataParser

     * @param defaultValue the default data value to use
     */
    public AbstractColumn(Class columnType, Object defaultValue) {
        m_columnType = columnType;
       
        DataParser p = ParserFactory.getDefaultFactory().getParser(columnType);
        m_parser = ( p==null ? new ObjectParser() : p );
       
        setDefaultValue(defaultValue);
        m_readOnly = false;
        m_listeners = new CopyOnWriteArrayList();
View Full Code Here

Examples of prefuse.data.parser.DataParser

                // For now we use generic routines for filling column values.
                // This results in the autoboxing of primitive types, slowing
                // performance a bit and possibly triggering avoidable garbage
                // collections. If this proves to be a problem down the road,
                // we can add more nuance later.
                DataParser dp = di.getParser(dim[1]);
                table.set(dim[0], dim[1], dp.parse(value));
            }
        };
       
        // read the data into the table
        try {
View Full Code Here

Examples of yalp.data.parsing.DataParser

        public void checkAndParse() {
            if (!requestIsParsed) {
                Http.Request request = Http.Request.current();
                String contentType = request.contentType;
                if (contentType != null) {
                    DataParser dataParser = DataParser.parsers.get(contentType);
                    if (dataParser != null) {
                        _mergeWith(dataParser.parse(request.body));
                    } else {
                        if (contentType.startsWith("text/")) {
                            _mergeWith(new TextParser().parse(request.body));
                        }
                    }
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.