infomat.mro
Class FileConverter
java.lang.Object
infomat.mro.FileConverter
- All Implemented Interfaces:
- HasProperties
public class FileConverter
- extends java.lang.Object
- implements HasProperties
Class for converting Infomat file types.
For natural reasons the conversion is not complete,
i.e. all file types can not be converted to all others.
In fact it is only possible to convert to
the Infomat types, that is IMatrix and IObjectGrouping.
The class supposes that the groupings are along the rows.
java -cp .:classes/ -Xms1024m -Xmx1024m infomat.FileConverter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
private Properties properties
separator
private java.lang.String separator
matrix
private IMatrix matrix
grouping
private IObjectGrouping grouping
FileConverter
public FileConverter()
getAllFileTypes
private java.util.Vector<PropertyValueDescription> getAllFileTypes()
getDefaultProperties
public Properties getDefaultProperties()
- Specified by:
getDefaultProperties
in interface HasProperties
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interface HasProperties
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws PropertyNotFoundException
- Specified by:
setProperty
in interface HasProperties
- Throws:
PropertyNotFoundException
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interface HasProperties
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interface HasProperties
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
PropertyNotFoundException
- Throws:
java.io.IOException
PropertyNotFoundException
doIt
public void doIt(java.lang.String[] args)
throws java.io.IOException,
PropertyNotFoundException
- Throws:
java.io.IOException
PropertyNotFoundException
badInput
private void badInput(java.lang.String comment)
checkInput
private void checkInput(java.lang.String[] args)
throws java.io.IOException,
PropertyNotFoundException
- Throws:
java.io.IOException
PropertyNotFoundException
readFiles
private void readFiles()
writeFiles
private void writeFiles()