org.apache.bsf.dbline

Class Buffer

public class Buffer extends Object

A buffer represents a document such as a JSP. Note that lines start at zero, so the first line has a line number of zero. A document is described by its URI as known in the servlet engine. The URI includes the Web application prefix. For instance: /examples/jsp/cal/cal1.jsp with /examples being the application prefix. Note: the name is the shortname, that is, the last name of the URI. This allows easy manipulation from the command line in the debugger.

UNKNOWN: Olivier Gruber

Constructor Summary
Buffer(String uri, String filename, File file)
Method Summary
voidaddBreakpoint(BreakPoint bp)
static Bufferfactory(String filename, String uri)
BreakPointgetBreakpoint(int id)
EnumerationgetBreakpoints()
intgetCurrentLine()
StringgetFileName()
StringgetLine(int lineno)
intgetLineCount()
StringgetName()
StringgetURI()
BreakPointremoveBreakpoint(int id)
voidsetCurrentLine(int lineno)

Constructor Detail

Buffer

public Buffer(String uri, String filename, File file)

Method Detail

addBreakpoint

public void addBreakpoint(BreakPoint bp)

factory

public static Buffer factory(String filename, String uri)

getBreakpoint

public BreakPoint getBreakpoint(int id)

getBreakpoints

public Enumeration getBreakpoints()

getCurrentLine

public int getCurrentLine()

getFileName

public String getFileName()

getLine

public String getLine(int lineno)

getLineCount

public int getLineCount()

getName

public String getName()

getURI

public String getURI()

removeBreakpoint

public BreakPoint removeBreakpoint(int id)

setCurrentLine

public void setCurrentLine(int lineno)