org.apache.maven.doxia.util

Interface ByLineSource

public interface ByLineSource

The token are the new lines :)

Since: Nov 4, 2005

Author: Juan F. Codagnone

Method Summary
voidclose()
close the source ...
intgetLineNumber()
StringgetName()
StringgetNextLine()
voidunget(String s)
voidungetLine()

Method Detail

close

public void close()
close the source ...

getLineNumber

public int getLineNumber()

Returns: the current line number

getName

public String getName()

Returns: the name of the input. could be the filename for example

getNextLine

public String getNextLine()

Returns: the next line. null if we reached the end.

Throws: ParseException on I/O error

unget

public void unget(String s)

Parameters: s some text to push back to the parser

Throws: IllegalStateException if the ungetLine/unget is called more than one time without calling getNextLine()

ungetLine

public void ungetLine()

Throws: IllegalStateException if the ungetLine/unget is called more than one time without calling getNextLine()

Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.