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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_uri
java.lang.String m_uri
m_name
java.lang.String m_name
m_filename
java.lang.String m_filename
m_lines
java.lang.String[] m_lines
m_breakpoints
java.util.Vector m_breakpoints
m_currentLine
int m_currentLine
Buffer
public Buffer(java.lang.String uri,
java.lang.String filename,
java.io.File file)
addBreakpoint
public void addBreakpoint(BreakPoint bp)
buildFnOrScript
java.lang.StringBuffer buildFnOrScript(int start,
int end)
factory
public static Buffer factory(java.lang.String filename,
java.lang.String uri)
getBreakpoint
public BreakPoint getBreakpoint(int id)
removeBreakpoint
public BreakPoint removeBreakpoint(int id)
getBreakpoints
public java.util.Enumeration getBreakpoints()
getCurrentLine
public int getCurrentLine()
setCurrentLine
public void setCurrentLine(int lineno)
getFileName
public java.lang.String getFileName()
getLineCount
public int getLineCount()
getLine
public java.lang.String getLine(int lineno)
getName
public java.lang.String getName()
getURI
public java.lang.String getURI()
loadAndParse2
private java.lang.String[] loadAndParse2(java.io.File file)