com.sap.tc.logging.reader
Class FileReadLog

java.lang.Object
  |
  +--com.sap.tc.logging.ExceptionHandling
        |
        +--com.sap.tc.logging.BaseLog
              |
              +--com.sap.tc.logging.reader.ReadLog
                    |
                    +--com.sap.tc.logging.reader.ReadFileSetLog
                          |
                          +--com.sap.tc.logging.reader.FileReadLog
All Implemented Interfaces:
java.lang.Cloneable, IBaseLog, IFileSetLog, IObjectInfo, IReadLog

public final class FileReadLog
extends ReadFileSetLog


Fields inherited from class com.sap.tc.logging.reader.ReadFileSetLog
MODE_FILE_SET, MODE_SINGLE_FILE
 
Fields inherited from class com.sap.tc.logging.BaseLog
STATUS_CLOSED, STATUS_INVALID, STATUS_OPENED
 
Constructor Summary
FileReadLog(FileLog fileLog)
          Deprecated. Not suported
FileReadLog(java.lang.String fileName)
           
FileReadLog(java.lang.String fileName, int size, int limit)
           
 
Method Summary
 long find(java.lang.String condition)
           
 boolean isBOF()
           
 boolean isEOF()
           
 boolean isPartOfFileSet()
          Deprecated. Use the new isInFileSet() method
 void moveToBOF()
           
 void moveToEOF()
           
 ILoggingResultSet readNext(int numberOfRecords)
           
 ILoggingResultSet readPrevious(int numberOfRecords)
           
 void registerForLogEvents(LogEvents logEvents)
           
 ILoggingResultSet search(java.lang.String condition)
           
 ILoggingResultSet searchNext(java.lang.String[] searchTokens, boolean isCaseSensitive)
           
 void seek(long filePointer)
           
 
Methods inherited from class com.sap.tc.logging.reader.ReadFileSetLog
getFile, getFile, getFileLatest, getFilePrime, getIndex, getLimit, getSize, isEnd, isInFileSet, isInFileSetMode, isInSingleFileMode, isStart, moveToBOFS, moveToEOFS, next, previous, setIndex, setLimit, setSize
 
Methods inherited from class com.sap.tc.logging.reader.ReadLog
getBookMark, readNext, readPrevious, setBookMark
 
Methods inherited from class com.sap.tc.logging.BaseLog
addFilter, close, getDescription, getEncoding, getFilter, getFilters, getFooter, getFormatter, getHeader, getMode, getName, getPattern, getSource, getVerInUse, isClosed, isOpened, open, removeFilter, removeFilters, setDescription, setEncoding, setFormatter, setMode, setName, setPattern, setSource, status
 
Methods inherited from class com.sap.tc.logging.ExceptionHandling
getException, getExceptions, handleException, handleException, resetException, throwException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sap.tc.logging.interfaces.IReadLog
getMode, setMode
 
Methods inherited from interface com.sap.tc.logging.interfaces.IBaseLog
addFilter, close, getEncoding, getFilter, getFilters, getFooter, getFormatter, getHeader, getPattern, getSource, isClosed, isOpened, open, removeFilter, removeFilters, setEncoding, setFormatter, setPattern, setSource, status
 
Methods inherited from interface com.sap.tc.logging.interfaces.IObjectInfo
getDescription, getName, getVerInUse
 

Constructor Detail

FileReadLog

public FileReadLog(java.lang.String fileName)
            throws FileDataException

FileReadLog

public FileReadLog(java.lang.String fileName,
                   int size,
                   int limit)
            throws FileDataException

FileReadLog

public FileReadLog(FileLog fileLog)
Deprecated. Not suported

This constructor logs all exception but doesn't re-throw it out.
Method Detail

registerForLogEvents

public void registerForLogEvents(LogEvents logEvents)

isBOF

public boolean isBOF()
              throws DataException

isEOF

public boolean isEOF()
              throws DataException

moveToBOF

public void moveToBOF()
               throws DataException

moveToEOF

public void moveToEOF()
               throws DataException

readNext

public ILoggingResultSet readNext(int numberOfRecords)
                           throws DataException
See Also:
IReadLog.readNext(int)

readPrevious

public ILoggingResultSet readPrevious(int numberOfRecords)
                               throws DataException
See Also:
IReadLog.readPrevious(int)

isPartOfFileSet

public boolean isPartOfFileSet()
Deprecated. Use the new isInFileSet() method

Is this FileLog in FileSet Mode

seek

public void seek(long filePointer)
          throws DataException

find

public long find(java.lang.String condition)
          throws DataException

search

public ILoggingResultSet search(java.lang.String condition)
                         throws DataException

searchNext

public ILoggingResultSet searchNext(java.lang.String[] searchTokens,
                                    boolean isCaseSensitive)
                             throws DataException