public class PositionalPushbackReader extends Object
PushbackReader
, this class allows pushing back an EOF marker as wellConstructor and Description |
---|
PositionalPushbackReader(org.jamon.api.TemplateLocation templateLocation,
Reader reader) |
PositionalPushbackReader(org.jamon.api.TemplateLocation templateLocation,
Reader reader,
int pushbackBufferSize) |
Modifier and Type | Method and Description |
---|---|
org.jamon.api.Location |
getCurrentNodeLocation()
Get the location of the current node, as set by
markNodeBeginning() or
markNodeEnd() |
org.jamon.api.Location |
getLocation()
Get the location of the character just read.
|
org.jamon.api.Location |
getNextLocation()
Get the location of the next character to be read (if there is one).
|
boolean |
isLineStart() |
void |
markNodeBeginning()
Mark that we are just starting a node.
|
void |
markNodeEnd()
Mark that we have just finished a node
|
int |
read() |
void |
unread(int c) |
public PositionalPushbackReader(org.jamon.api.TemplateLocation templateLocation, Reader reader)
templateLocation
- The path to the resource being read.reader
- The underlying reader to usepublic PositionalPushbackReader(org.jamon.api.TemplateLocation templateLocation, Reader reader, int pushbackBufferSize)
public int read() throws IOException
IOException
public void unread(int c) throws IOException
IOException
public org.jamon.api.Location getLocation()
public org.jamon.api.Location getNextLocation()
public boolean isLineStart()
public void markNodeBeginning()
public void markNodeEnd()
public org.jamon.api.Location getCurrentNodeLocation()
markNodeBeginning()
or
markNodeEnd()
Copyright © 2003–2017 Jamon developers. All rights reserved.