Package com.nt.udc.oi.node.geneva
Interface GenevaMetaWriter
- All Known Implementing Classes:
GenevaBasicMetaWriter
public interface GenevaMetaWriter
Generic interface for writting out geneva data
it handles the number of lines, number of characters, checksum and security checksum
subclass can decide which ones to track
-
Method Summary
Modifier and TypeMethodDescriptionint
get the number of characters writtengets the checksumint
getLines()
get number of lines written using the writeln methodgets the security checksumvoid
reset()
resets the line count, character count, checksum and security checksumvoid
writes out a line of date increments/updates line, character, checksum, security checksumvoid
writelnNoInc
(String data) writes out a line does NOT imcrement/update lines, characters, checksum, security checksum use this in after the end footer
-
Method Details
-
reset
void reset()resets the line count, character count, checksum and security checksum -
writeln
writes out a line of date increments/updates line, character, checksum, security checksum- Parameters:
data
- String to write out data
-
writelnNoInc
writes out a line does NOT imcrement/update lines, characters, checksum, security checksum use this in after the end footer- Parameters:
data
- String to write out
-
getLines
int getLines()get number of lines written using the writeln method- Returns:
- number of lines written
-
getCharacters
int getCharacters()get the number of characters written -
getChecksum
String getChecksum()gets the checksum- Returns:
- checksum the checksum or empty string if it doesn't compute the checksum
-
getSecurityChecksum
String getSecurityChecksum()gets the security checksum- Returns:
- security checksum or empty string if it doesn't compute the security checksum
-