org.apache.bsf.dbline
Class Buffer
java.lang.Object
org.apache.bsf.dbline.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.
Buffer(String uri, String filename, File file)
|
Buffer
public Buffer(String uri,
String filename,
File file)
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)