public abstract class FileContents extends java.lang.Object implements Contents
| Modifier and Type | Class and Description |
|---|---|
protected class |
FileContents.DateRenderer |
protected class |
FileContents.ErrNoRenderer |
protected class |
FileContents.RecReader |
protected class |
FileContents.TypeRenderer |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BLOCKGAB |
protected static int |
BLOCKSIZE |
protected static javax.swing.Icon |
ERROR_ICON |
protected static javax.swing.Icon |
INFO_ICON |
protected static java.text.SimpleDateFormat |
PARSERFORMAT |
protected static javax.swing.Icon |
UNKNOWN_ICON |
protected static javax.swing.Icon |
WARN_ICON |
| Constructor and Description |
|---|
FileContents(java.io.File file,
java.util.List recs) |
| Modifier and Type | Method and Description |
|---|---|
int |
countAtPos(java.lang.String text,
int pos,
boolean caseSens)
Count the given text from the record position specified pos.
|
protected void |
finalize() |
int |
getCount()
Get the total number of record.
|
java.lang.String |
getRecord(int index)
Get a record.
|
void |
release() |
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)
Search for the given text from the record position specified pos.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigTable, getErrOrLogType, getStringPresentationprotected static final java.text.SimpleDateFormat PARSERFORMAT
protected static javax.swing.Icon ERROR_ICON
protected static javax.swing.Icon WARN_ICON
protected static javax.swing.Icon INFO_ICON
protected static javax.swing.Icon UNKNOWN_ICON
protected static final int BLOCKSIZE
protected static final int BLOCKGAB
public FileContents(java.io.File file,
java.util.List recs)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void release()
throws java.io.IOException
public java.lang.String getRecord(int index)
throws java.io.IOException
Contentspublic int getCount()
Contentspublic int search(java.lang.String text,
int pos,
boolean down,
boolean caseSens)
throws java.io.IOException
public int searchAtPos(java.lang.String text,
int pos,
boolean caseSens)
throws java.io.IOException
searchAtPos in interface Contentstext - The stringpos - the start positioncaseSens - if true use a case insentive compare.java.io.IOExceptionpublic int countAtPos(java.lang.String text,
int pos,
boolean caseSens)
throws java.io.IOException
countAtPos in interface Contentstext - The stringpos - the start positioncaseSens - if true use a case insentive compare.java.io.IOException