Package de.FeatureModellingTool.GraphicalEditor.store

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


        List<DrawModel> drawings = new ArrayList<DrawModel>();
        AdaptedStandardStorageFormat storef = new AdaptedStandardStorageFormat();
        try {
          for (int i = 0; i < drawingViews.length; i++) {
            sw = new StringWriter();
            storef.store(sw, drawingViews[i].getDrawing());
            drawings.add(new DrawModel(drawingViews[i].getDrawing()
                .getId(), drawingViews[i].getDrawing()
                .getTitle(), sw.toString()));
            sw.close();
          }
View Full Code Here


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

          if (set != null) {
            Iterator valueIterator = set.iterator();
            while (valueIterator.hasNext()) {
              Drawing drawing = (Drawing) valueIterator.next();
              store.store(bufferStream, drawing);
              ZipEntry drawingEntry = new ZipEntry(id + "\\"
                  + drawing.getTitle() + ".draw");
              zipOutStream.putNextEntry(drawingEntry);
              bufferStream.writeTo(zipOutStream);
              zipOutStream.closeEntry();
View Full Code Here

            List<DrawModel> drawings  =new ArrayList<DrawModel>();
            AdaptedStandardStorageFormat storef =  new AdaptedStandardStorageFormat();
            try{
              for(int i = 0 ;i<drawingViews.length;i++){
                sw = new StringWriter();
                storef.store(sw, drawingViews[i].getDrawing());
                drawings.add(new DrawModel(drawingViews[i].getDrawing().getId(),drawingViews[i].getDrawing().getTitle(),sw.toString()));
                sw.close();
              }
              fileModel.setDraws(drawings);
            }catch(Exception exec){
View Full Code Here

                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

                    if (set != null) {
                        Iterator valueIterator = set.iterator();
                        while (valueIterator.hasNext()) {
                            Drawing drawing = (Drawing) valueIterator.next();
                            store.store(bufferStream, drawing);
                            ZipEntry drawingEntry = new ZipEntry(id + "\\" + drawing.getTitle() + ".draw");
                            zipOutStream.putNextEntry(drawingEntry);
                            bufferStream.writeTo(zipOutStream);
                            zipOutStream.closeEntry();
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.