Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.bsf.dbline
Class Buffer  view Buffer download Buffer.java

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.


Field Summary
(package private)  java.util.Vector m_breakpoints
           
(package private)  int m_currentLine
           
(package private)  java.lang.String m_filename
           
(package private)  java.lang.String[] m_lines
           
(package private)  java.lang.String m_name
           
(package private)  java.lang.String m_uri
           
 
Constructor Summary
Buffer(java.lang.String uri, java.lang.String filename, java.io.File file)
           
 
Method Summary
 void addBreakpoint(BreakPoint bp)
           
(package private)  java.lang.StringBuffer buildFnOrScript(int start, int end)
           
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()
           
private  java.lang.String[] loadAndParse2(java.io.File file)
           
 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
 

Field Detail

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

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)