Package co.ecg.alpaca.core.model
Class LogFileToken
- java.lang.Object
-
- co.ecg.alpaca.core.model.AlpacaFileToken
-
- co.ecg.alpaca.core.model.LogFileToken
-
- All Implemented Interfaces:
Serializable
public class LogFileToken extends AlpacaFileToken
LogFileToken class.
- Version:
- $Id: $Id
- Author:
- mkeathley
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LogFileToken()Constructor for LogFileToken.LogFileToken(String fileName)Constructor for LogFileToken.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendAndSave(String logLine)appendAndSave.voidclose()close.StringgetLog()Retrieves the log contents.voidinitialize()initialize.-
Methods inherited from class co.ecg.alpaca.core.model.AlpacaFileToken
getAbsolutePath, getFile, getType, retrieve
-
-
-
-
Method Detail
-
getLog
public String getLog()
Retrieves the log contents. Attempts to retrieve log file, if FileNotFound, return empty string.- Returns:
- The log contents
- Throws:
IOException- Thrown if an error occurs while retrieving the log file.HelperException- Thrown if an error occurs.
-
appendAndSave
public void appendAndSave(String logLine) throws IOException, HelperException
appendAndSave.
- Parameters:
logLine- aStringobject.- Throws:
IOException- if any.HelperException- if any.
-
initialize
public void initialize() throws HelperException, IOExceptioninitialize.
- Throws:
HelperException- if any.IOException- if any.
-
close
public void close() throws IOExceptionclose.
- Throws:
IOException- if any.
-
-