public class TableContents
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
TableContents.FileRecord |
Modifier and Type | Field and Description |
---|---|
protected Contents |
contents |
protected java.util.Vector |
listeners |
protected int |
logFileType |
protected static int |
MAXFILESIZE |
Constructor and Description |
---|
TableContents(java.io.File file)
The table contents is loaded from file.
|
TableContents(java.io.File file,
ProgressListener listener)
The table contents is loaded from file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
analizeFile(java.io.File file)
Analize the file.
|
void |
configTable(javax.swing.JTable table)
Configure the table view
|
int |
countAtPos(java.lang.String text,
int pos,
boolean caseSens) |
protected void |
fireEvent(long count,
long value)
Fire a progress event.
|
protected void |
fireEvent(ProgressEvent ev,
int size)
Fire a progress event.
|
int |
getCount()
Get total number of record.
|
java.lang.String |
getCurrentHost()
Get the current host.
|
long |
getCurrentLineNo()
Get the current lineno.
|
long |
getCurrentPId()
Get the current pid.
|
long |
getCurrentSession()
Get the current session.
|
java.lang.String |
getErrOrLogType()
Get a type specification.
|
java.util.Vector<com.highqsoft.logviewer.LineOffset> |
getLineOffsetVector()
Get the lineOffsetVector.
|
int |
getLogFileType()
Get logfile type.
|
int |
getOffsetOfLine(int line) |
java.io.File |
getOutputTmpFile()
Get the outputTmpFile.
|
java.lang.String |
getStringPresentation(int rec)
Get a string presentation of the record specified by the index.
|
int |
search(java.lang.String text,
int pos,
boolean down,
boolean caseSens)
Search for the given text from the record position specified pos.
|
int |
searchAtPos(java.lang.String text,
int pos,
boolean caseSens) |
protected static final int MAXFILESIZE
protected java.util.Vector listeners
protected Contents contents
protected int logFileType
public TableContents(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
file
- the log file.java.io.FileNotFoundException
java.io.IOException
public TableContents(java.io.File file, ProgressListener listener) throws java.io.FileNotFoundException, java.io.IOException
file
- the log file.java.io.FileNotFoundException
java.io.IOException
public java.lang.String getErrOrLogType()
public int getLogFileType()
public int getCount()
public long getCurrentSession()
public long getCurrentLineNo()
public long getCurrentPId()
public java.lang.String getCurrentHost()
public java.io.File getOutputTmpFile()
public java.util.Vector<com.highqsoft.logviewer.LineOffset> getLineOffsetVector()
public int getOffsetOfLine(int line)
protected void fireEvent(long count, long value)
protected void fireEvent(ProgressEvent ev, int size)
protected void analizeFile(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public void configTable(javax.swing.JTable table)
the
- table to be configured.public java.lang.String getStringPresentation(int rec)
index
- the record index.public int search(java.lang.String text, int pos, boolean down, boolean caseSens) throws java.io.IOException
text
- The stringpos
- the start positiondown
- if true search in forward direction.java.io.IOException
public int searchAtPos(java.lang.String text, int pos, boolean caseSens) throws java.io.IOException
java.io.IOException
public int countAtPos(java.lang.String text, int pos, boolean caseSens) throws java.io.IOException
java.io.IOException