Examples of IJarVisitor


Examples of tk.eclipse.plugin.htmleditor.gefutils.IJarVisitor

  private InputStream getTagFile(final String path){
    try {
      if(path.startsWith("/META-INF/tags")){
        // in JAR (or classpath?)
        return (InputStream)JarAcceptor.accept(project.getProject(),
            new IJarVisitor(){
          public Object visit(JarFile file, JarEntry entry) throws Exception {
            if(("/" + entry.getName()).equals(path)){
              return file.getInputStream(entry);
            }
            return null;
View Full Code Here

Examples of tk.eclipse.plugin.htmleditor.gefutils.IJarVisitor

    return null;
  }
 
  /** Load from META-INF in the jar file */
  private static byte[] getTLDFromJars(File basedir,final String uri){
    return (byte[])JarAcceptor.accept(basedir, new IJarVisitor(){
      public Object visit(JarFile file, JarEntry entry) throws Exception {
        if(entry.getName().endsWith(".tld")){
          byte[] bytes = HTMLUtil.readStream(file.getInputStream(entry));
          try {
            FuzzyXMLDocument doc = new FuzzyXMLParser(false).parse(new ByteArrayInputStream(bytes));
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.