Package de.FeatureModellingTool.GraphicalEditor.store

Examples of de.FeatureModellingTool.GraphicalEditor.store.AdaptedStandardStorageFormat.restore()


                drawingArray = new Drawing[viewNameArray.length];
                for (int i = 0; i < viewNameArray.length; i++) {
                    DrawModel draw = dataSrc.getDrawModel(viewNameArray[i]);
                    InputStream input = new ByteArrayInputStream(draw.getContent().getBytes());
//                    InputStream input = new StringBufferInputStream(draw.getContent());
                    drawingArray[i] = reader.restore(input);
                    drawingArray[i].setId(draw.getId());
                }

            } catch (Exception exception) {
                errorInfo = "Exception occurs when read project graphic file.\n" + exception;
View Full Code Here


            try {
                drawingArray = new Drawing[viewNameArray.length];
                for (int i = 0; i < viewNameArray.length; i++) {
                    zipEntry = zipFile.getEntry(viewNameArray[i] + ".draw");
                    InputStream inputStream = zipFile.getInputStream(zipEntry);
                    drawingArray[i] = reader.restore(inputStream);
                }

            } catch (Exception exception) {
                errorInfo = "Exception occurs when read project graphic file.\n" + exception;
                return false;
View Full Code Here

                if (index > 0) {
                    try {
                        String id = entryName.substring(0, index);
                        InputStream inputStream = zipFile.getInputStream(entry);
                        Drawing drawing = reader.restore(inputStream);
                        informationMap.add(id, drawing);
                    } catch (Exception exception) {
                        errorInfo = "Exception occurs when read information.\n" + exception;
                        exception.printStackTrace();
                        return false;
View Full Code Here

            try {
                drawingArray = new Drawing[viewNameArray.length];
                for (int i = 0; i < viewNameArray.length; i++) {
                    DrawModel draw = dataSrc.getDrawModel(viewNameArray[i]);
                    InputStream input = new StringBufferInputStream(draw.getContent());
                    drawingArray[i] = reader.restore(input);
                    drawingArray[i].setId(draw.getId());
                }

            } catch (Exception exception) {
                errorInfo = "Exception occurs when read project graphic file.\n" + exception;
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.