Package de.grapheditor.store

Examples of de.grapheditor.store.AdaptedStandardStorageFormat


                //end д����Ŀ�����ļ�

                bufferStream.reset();

                //begin д����Ŀ��ͼ�ļ�
                AdaptedStandardStorageFormat store = new AdaptedStandardStorageFormat();
                for (int i = 0; i < drawingViews.length; i++) {
                    store.store(bufferStream, drawingViews[i].getDrawing());
                    ZipEntry viewZipEntry = new ZipEntry((String) drawingViews[i].getDrawing().getTitle() + ".draw");
                    zipOutStream.putNextEntry(viewZipEntry);
                    bufferStream.writeTo(zipOutStream);
                    zipOutStream.closeEntry();
View Full Code Here


            errorInfo = "Exception occurs when read project index file.\n" + exception;
            return false;
        }
        //end ��ȡ��Ŀ�����ļ�

        AdaptedStandardStorageFormat reader = new AdaptedStandardStorageFormat();

        if (viewNameArray.length > 0) {
            //begin ��ȡͼԪ��Ϣ�ļ�
            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

                //end д����Ŀ�����ļ�

                bufferStream.reset();

                //begin д����Ŀ��ͼ�ļ�
                AdaptedStandardStorageFormat store = new AdaptedStandardStorageFormat();
                for (int i = 0; i < drawingViews.length; i++) {
                    store.store(bufferStream, drawingViews[i].getDrawing());
                    ZipEntry viewZipEntry = new ZipEntry((String) drawingViews[i].getDrawing().getTitle() + ".draw");
                    zipOutStream.putNextEntry(viewZipEntry);
                    bufferStream.writeTo(zipOutStream);
                    zipOutStream.closeEntry();
View Full Code Here

            errorInfo = "Exception occurs when read project index file.\n" + exception;
            return false;
        }
        //end ��ȡ��Ŀ�����ļ�

        AdaptedStandardStorageFormat reader = new AdaptedStandardStorageFormat();

        if (viewNameArray.length > 0) {
            //begin ��ȡͼԪ��Ϣ�ļ�
            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

TOP

Related Classes of de.grapheditor.store.AdaptedStandardStorageFormat

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.