org.aspectj.org.eclipse.jdt.internal.formatter.comment
Class Java2HTMLEntityReader

java.lang.Object
  extended by java.io.Reader
      extended by org.aspectj.org.eclipse.jdt.internal.formatter.comment.SubstitutionTextReader
          extended by org.aspectj.org.eclipse.jdt.internal.formatter.comment.Java2HTMLEntityReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class Java2HTMLEntityReader
extends SubstitutionTextReader

SubstitutionTextReader that will substitute html entities for html symbols encountered in the original text. Line breaks and whitespaces are preserved.

Since:
3.0

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
Java2HTMLEntityReader(java.io.Reader reader)
          Creates a new instance that will read from reader
 
Method Summary
protected  java.lang.String computeSubstitution(int c)
          Implement to compute the substitution for the given character and if necessary subsequent characters.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.comment.SubstitutionTextReader
close, getReader, getString, isSkippingWhitespace, nextChar, read, read, ready, reset, setSkipWhitespace
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java2HTMLEntityReader

public Java2HTMLEntityReader(java.io.Reader reader)
Creates a new instance that will read from reader

Parameters:
reader - the source reader
Method Detail

computeSubstitution

protected java.lang.String computeSubstitution(int c)
                                        throws java.io.IOException
Description copied from class: SubstitutionTextReader
Implement to compute the substitution for the given character and if necessary subsequent characters. Use nextChar to read subsequent characters.

Specified by:
computeSubstitution in class SubstitutionTextReader
Throws:
java.io.IOException