Package ch.interlis.iox

Examples of ch.interlis.iox.StartBasketEvent


        try {
            ioxReader = new ch.interlis.iom_j.itf.ItfReader(new java.io.File(
                    itf));
            IoxEvent event = ioxReader.read();
            StartBasketEvent be = null;

            do {
                event = ioxReader.read();
                if (event instanceof StartBasketEvent) {
                    be = (StartBasketEvent) event;
                    break;
                }
            }

            while (!(event instanceof EndTransferEvent));
            ioxReader.close();
            ioxReader = null;

            if (be == null) {
                logger.error("no baskets in transfer-file");
                throw new IllegalArgumentException(
                        "no baskets in transfer-file");
            } else {
                String namev[] = be.getType().split("\\.");
                modelName = namev[0];
            }
        } finally {

            if (ioxReader != null) {
View Full Code Here


        ((ItfReader) ioxReader).setReadEnumValAsItfCode(true);

        IoxEvent event = ioxReader.read();
        while (event != null) {
            if (event instanceof StartBasketEvent) {
                StartBasketEvent basket = (StartBasketEvent) event;
                logger.debug(basket.getType() + "(oid " + basket.getBid()
                        + ")...");

            } else if (event instanceof ObjectEvent) {
                IomObject iomObj = ((ObjectEvent) event).getIomObject();
                String tag = iomObj.getobjecttag();
View Full Code Here

TOP

Related Classes of ch.interlis.iox.StartBasketEvent

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.