Package org.eclipse.jdt.internal.formatter.comment

Examples of org.eclipse.jdt.internal.formatter.comment.HTMLEntity2JavaReader


        this.codeSnippetBuffer.append(this.scanner.source, lineStart, end+1-lineStart);
      }
    }
 
    // 2 - convert HTML to Java (@see JavaDocRegion#convertHtml2Java)
    HTMLEntity2JavaReader reader= new HTMLEntity2JavaReader(new StringReader(this.codeSnippetBuffer.toString()));
    char[] buf= new char[this.codeSnippetBuffer.length()]; // html2text never gets longer, only shorter!
    String convertedSnippet;
    try {
      int read= reader.read(buf);
      convertedSnippet = new String(buf, 0, read);
      reader.close();
    } catch (IOException e) {
      // should not happen
      CommentFormatterUtil.log(e);
      return;
    }
View Full Code Here


        this.codeSnippetBuffer.append(this.scanner.source, lineStart, end+1-lineStart);
      }
    }
 
    // 2 - convert HTML to Java (@see JavaDocRegion#convertHtml2Java)
    HTMLEntity2JavaReader reader= new HTMLEntity2JavaReader(new StringReader(this.codeSnippetBuffer.toString()));
    char[] buf= new char[this.codeSnippetBuffer.length()]; // html2text never gets longer, only shorter!
    String convertedSnippet;
    try {
      int read= reader.read(buf);
      convertedSnippet = new String(buf, 0, read);
    } catch (IOException e) {
      // should not happen
      CommentFormatterUtil.log(e);
      return;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.formatter.comment.HTMLEntity2JavaReader

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.