Examples of StringTable


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

            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);
View Full Code Here

Examples of skadistats.clarity.model.StringTable

    private final Logger log = LoggerFactory.getLogger(getClass());
   
    @Override
    public void apply(int peekTick, CSVCMsg_UpdateStringTable message, Match match) {
        HandlerHelper.traceMessage(log, peekTick, message);
        StringTable table = match.getStringTables().forId(message.getTableId());
        List<StringTableEntry> changes = StringTableDecoder.decode(table, message.getStringData().toByteArray(), message.getNumChangedEntries());
        StringTableApplier a = StringTableApplier.forName(table.getName());
        for (StringTableEntry t : changes) {
            a.apply(match, table.getName(), t.getIndex(), t.getKey(), t.getValue());
        }
    }
View Full Code Here

Examples of skadistats.clarity.model.StringTable

    private final Logger log = LoggerFactory.getLogger(getClass());
   
    @Override
    public void apply(int peekTick, CSVCMsg_CreateStringTable message, Match match) {
        HandlerHelper.traceMessage(log, peekTick, message);
        StringTable table = new StringTable(
            message.getName(),
            message.getMaxEntries(),
            message.getUserDataFixedSize(),
            message.getUserDataSize(),
            message.getUserDataSizeBits(),
            message.getFlags()
        );
        match.getStringTables().add(table);
        List<StringTableEntry> changes = StringTableDecoder.decode(table, message.getStringData().toByteArray(), message.getNumEntries());
        StringTableApplier a = StringTableApplier.forName(table.getName());
        for (StringTableEntry t : changes) {
            a.apply(match, table.getName(), t.getIndex(), t.getKey(), t.getValue());
        }
    }
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.