org.apache.bsf.dbline

Class Buffer


public class Buffer
extends java.lang.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.

Constructor Summary

Buffer(String uri, String filename, File file)

Method Summary

void
addBreakpoint(BreakPoint bp)
static Buffer
factory(String filename, String uri)
BreakPoint
getBreakpoint(int id)
Enumeration
getBreakpoints()
int
getCurrentLine()
String
getFileName()
String
getLine(int lineno)
int
getLineCount()
String
getName()
String
getURI()
BreakPoint
removeBreakpoint(int id)
void
setCurrentLine(int lineno)

Constructor Details

Buffer

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

Method Details

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)