Package org.thechiselgroup.choosel.core.client.importer

Examples of org.thechiselgroup.choosel.core.client.importer.ParseException


    @Override
    public void okay() throws ParseException {
        String pastedText = pasteArea.getText();

        if (pastedText.length() > 75000) {
            throw new ParseException(
                    "The pasted text is too big. "
                            + "This demo supports only up to 75000 characters in the pasted text.");
        }

        StringTable parsedRows = new CSVStringTableParser().parse(pastedText);

        if (parsedRows.getColumnCount() > 20) {
            throw new ParseException(
                    "Too many columns. This demo supports only up to 20 columns.");
        }
        if (parsedRows.getRowCount() > 400) {
            throw new ParseException(
                    "Too many rows. This demo supports only up to 400 rows.");
        }

        ResourceSet parsedResources = importer.createResources(parsedRows);
        parsedResources.setLabel(nameTextBox.getText());
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.core.client.importer.ParseException

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.