Package com.joshondesign.xml

Examples of com.joshondesign.xml.XMLWriter.end()


        try {
            XMLWriter out = new XMLWriter(file);
            out.start("files");
            for(File f : recentFiles) {
                out.start("file","filepath",f.getAbsolutePath());
                out.end();
            }
            out.end();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here


            out.start("files");
            for(File f : recentFiles) {
                out.start("file","filepath",f.getAbsolutePath());
                out.end();
            }
            out.end();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

            XMLWriter out = new XMLWriter(new PrintWriter(new OutputStreamWriter(new FileOutputStream(asset.getFile()), "UTF-8")),
                    asset.getFile().toURI());
            out.header();
            out.start("sketchy","version","-1");
            ExportProcessor.processFragment(new NativeExport(), out, getSymbols());
            out.end();
            out.close();
        }

    }
View Full Code Here

            xml.start("style")
                .attr("type", "text/css")
                .text("body { background-color: " + toText(page.getDocument().getBackgroundFill()) + ";}")
                .end();
            xml.start("title").text("slide").end();
            xml.end();//head
            xml.start("body");
        }

        public String getPageFilenameById(MultiFileOutput out, String linkTarget) {
            return out.getPageFilename(doc.getPageIndexById(linkTarget));
View Full Code Here

                    .attr("style","position:absolute;"
                        +" left:"+x+"px;"
                        +" top:" +y+"px;"
                    ).end();
            if(shape.isLink()) {
                xml.end();//a
            }
        }

        public void exportPost(MultiFileOutput out, SNode shape) {
View Full Code Here

                    .attr("id", "nav")
                    ;
            if(index > 0) {
                xml.start("a","href",out.getPageFilename(index-1));
                xml.text("< prev");
                xml.end();
            } else {
                xml.text("< prev");
            }
            xml.text(" | page " + (index+1) + " | ");
            if(index < page.getDocument().getPages().size()-1) {
View Full Code Here

                    .text("next &gt;")
                    .end();
            } else {
                xml.text("next &gt;");
            }
            xml.end();
            xml.end();//body
            xml.end();//html
            out.endPage();
        }
View Full Code Here

                    .end();
            } else {
                xml.text("next &gt;");
            }
            xml.end();
            xml.end();//body
            xml.end();//html
            out.endPage();
        }

        public void docEnd(MultiFileOutput out, SketchDocument document) {
View Full Code Here

            } else {
                xml.text("next &gt;");
            }
            xml.end();
            xml.end();//body
            xml.end();//html
            out.endPage();
        }

        public void docEnd(MultiFileOutput out, SketchDocument document) {
            //To change body of implemented methods use File | Settings | File Templates.
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.