jonelo.jacksum.ui

Class MetaInfo


public class MetaInfo
extends java.lang.Object

This is the Meta Information used by a Jacksum generated file list.

Field Summary

static String
METAINFO
The prefix for a MetaInfo

Constructor Summary

MetaInfo()
Constructs an empty MetaInfo object.
MetaInfo(String parseString)
Constructs a MetaInfo object by a String.

Method Summary

String
getAlgorithm()
Gets the algorithm.
String
getComment()
Gets a comment (Homepage, OS, Architecture, etc.).
String
getCommentchars()
String
getEncoding()
Gets the encoding of the checksum
char
getFilesep()
char
getGroupChar()
int
getGrouping()
String
getSeparator()
String
getTimestampFormat()
String
getVersion()
Gets the version of the meta info.
boolean
isAlternate()
boolean
isEncoding()
Is encoding wanted?
boolean
isGrouping()
boolean
isPathInfo()
boolean
isRecursive()
Is recursive specified?
boolean
isSeparatorWanted()
boolean
isTimestampFormat()
void
parse(String thisLine)
Parses a metaInfo String and fills the object.
void
setAlgorithm(String algorithm)
Sets the algorithm.
void
setAlternate(boolean _A)
void
setCommentchars(String commentchars)
void
setEncoding(String encoding)
Sets the encoding of the checksum
void
setFilesep(char filesep)
void
setGroupChar(char groupChar)
void
setGrouping(int grouping)
void
setPathInfo(boolean _p)
void
setRecursive(boolean _r)
Sets a flag if there is recursive processing.
void
setSeparator(String separator)
void
setTimestampFormat(String timestampFormat)
void
setVersion(String version)
Sets the version of the meta info.
String
toString()
A String representation of the Meta Information.

Field Details

METAINFO

public static final String METAINFO
The prefix for a MetaInfo

Constructor Details

MetaInfo

public MetaInfo()
Constructs an empty MetaInfo object.

MetaInfo

public MetaInfo(String parseString)
            throws MetaInfoVersionException
Constructs a MetaInfo object by a String.
Parameters:

Method Details

getAlgorithm

public String getAlgorithm()
Gets the algorithm.
Returns:
the code for the algorithm

getComment

public String getComment()
Gets a comment (Homepage, OS, Architecture, etc.).

getCommentchars

public String getCommentchars()

getEncoding

public String getEncoding()
Gets the encoding of the checksum
Returns:
the encoding of the checksum

getFilesep

public char getFilesep()

getGroupChar

public char getGroupChar()

getGrouping

public int getGrouping()

getSeparator

public String getSeparator()

getTimestampFormat

public String getTimestampFormat()

getVersion

public String getVersion()
Gets the version of the meta info.
Parameters:

isAlternate

public boolean isAlternate()

isEncoding

public boolean isEncoding()
Is encoding wanted?
Returns:
is encoding wanted?

isGrouping

public boolean isGrouping()

isPathInfo

public boolean isPathInfo()

isRecursive

public boolean isRecursive()
Is recursive specified?
Returns:
is recursive specified?

isSeparatorWanted

public boolean isSeparatorWanted()

isTimestampFormat

public boolean isTimestampFormat()

parse

public void parse(String thisLine)
            throws MetaInfoVersionException
Parses a metaInfo String and fills the object.
Parameters:
thisLine - a String containing MetaInfo

setAlgorithm

public void setAlgorithm(String algorithm)
Sets the algorithm.
Parameters:
algorithm - the code for the algorithm

setAlternate

public void setAlternate(boolean _A)

setCommentchars

public void setCommentchars(String commentchars)

setEncoding

public void setEncoding(String encoding)
Sets the encoding of the checksum
Parameters:
encoding - of the checksum

setFilesep

public void setFilesep(char filesep)

setGroupChar

public void setGroupChar(char groupChar)

setGrouping

public void setGrouping(int grouping)

setPathInfo

public void setPathInfo(boolean _p)

setRecursive

public void setRecursive(boolean _r)
Sets a flag if there is recursive processing.
Parameters:
_r - if recursive processing has been specified

setSeparator

public void setSeparator(String separator)

setTimestampFormat

public void setTimestampFormat(String timestampFormat)

setVersion

public void setVersion(String version)
Sets the version of the meta info.
Parameters:
version - of the meta info

toString

public String toString()
A String representation of the Meta Information.
Returns:
a String representing the Meta Information