org.apache.bsf.dbline
Class Buffer

java.lang.Object
  extended byorg.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.


Constructor Summary
Buffer(java.lang.String uri, java.lang.String filename, java.io.File file)
           
 
Method Summary
 void addBreakpoint(BreakPoint bp)
           
static Buffer factory(java.lang.String filename, java.lang.String uri)
           
 BreakPoint getBreakpoint(int id)
           
 java.util.Enumeration getBreakpoints()
           
 int getCurrentLine()
           
 java.lang.String getFileName()
           
 java.lang.String getLine(int lineno)
           
 int getLineCount()
           
 java.lang.String getName()
           
 java.lang.String getURI()
           
 BreakPoint removeBreakpoint(int id)
           
 void setCurrentLine(int lineno)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Buffer

public Buffer(java.lang.String uri,
              java.lang.String filename,
              java.io.File file)
Method Detail

addBreakpoint

public void addBreakpoint(BreakPoint bp)

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()