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 void
appendAndSave(String logLine)
appendAndSave.void
close()
close.String
getLog()
Retrieves the log contents.void
initialize()
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
- aString
object.- Throws:
IOException
- if any.HelperException
- if any.
-
initialize
public void initialize() throws HelperException, IOException
initialize.
- Throws:
HelperException
- if any.IOException
- if any.
-
close
public void close() throws IOException
close.
- Throws:
IOException
- if any.
-
-