org.thymeleaf.templateparser
Class TemplatePreprocessingReader

Object
  extended by java.io.Reader
      extended by org.thymeleaf.templateparser.TemplatePreprocessingReader
All Implemented Interfaces:
Closeable, Readable

public final class TemplatePreprocessingReader
extends Reader

Since:
2.0.7
Author:
Daniel Fernández

Field Summary
static char CHAR_ENTITY_START_SUBSTITUTE
           
static String SYNTHETIC_ROOT_ELEMENT_NAME
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
TemplatePreprocessingReader(Reader in, int bufferSize)
           
TemplatePreprocessingReader(Reader in, int bufferSize, boolean addSyntheticRootElement)
           
 
Method Summary
 void close()
           
 String getDocTypeClause()
           
 Reader getInnerReader()
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(char[] cbuf)
           
 int read(char[] cbuf, int off, int len)
           
 int read(CharBuffer target)
           
 boolean ready()
           
static void removeEntitySubstitutions(char[] text, int off, int len)
           
static String removeEntitySubstitutions(String text)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAR_ENTITY_START_SUBSTITUTE

public static final char CHAR_ENTITY_START_SUBSTITUTE
See Also:
Constant Field Values

SYNTHETIC_ROOT_ELEMENT_NAME

public static final String SYNTHETIC_ROOT_ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

TemplatePreprocessingReader

public TemplatePreprocessingReader(Reader in,
                                   int bufferSize)

TemplatePreprocessingReader

public TemplatePreprocessingReader(Reader in,
                                   int bufferSize,
                                   boolean addSyntheticRootElement)
Since:
2.0.11
Method Detail

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Specified by:
read in class Reader
Throws:
IOException

read

public int read()
         throws IOException
Overrides:
read in class Reader
Throws:
IOException

read

public int read(CharBuffer target)
         throws IOException
Specified by:
read in interface Readable
Overrides:
read in class Reader
Throws:
IOException

read

public int read(char[] cbuf)
         throws IOException
Overrides:
read in class Reader
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class Reader
Throws:
IOException

ready

public boolean ready()
              throws IOException
Overrides:
ready in class Reader
Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class Reader

mark

public void mark(int readAheadLimit)
          throws IOException
Overrides:
mark in class Reader
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class Reader
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Reader
Throws:
IOException

getDocTypeClause

public String getDocTypeClause()

removeEntitySubstitutions

public static final String removeEntitySubstitutions(String text)

removeEntitySubstitutions

public static final void removeEntitySubstitutions(char[] text,
                                                   int off,
                                                   int len)

getInnerReader

public Reader getInnerReader()
Since:
2.0.11


Copyright © 2013 The THYMELEAF team. All Rights Reserved.