@ALDDataIOProvider public class ALDNativeDataIOCmdline extends ALDStandardizedDataIOCmdline
ALDStandardizedDataIOCmdline
it
implements the Alida syntax conventions.DERIVEDCLASS_CHAR, FILEIO_CHAR
Constructor and Description |
---|
ALDNativeDataIOCmdline() |
Modifier and Type | Method and Description |
---|---|
String |
formatAsString(Object obj)
Returns the string representations of this object
This method is assumed to directly format the
obj into the string return and make no
prior interpretation regarding a file to be used. |
Object |
parse(Field field,
Class<?> cl,
String valueString)
Method to parse native data from a string.
|
Collection<Class<?>> |
providedClasses()
Interface method to announce all classes handled by this provider.
|
formatAsString, readData, requiresNewlines, writeData
public Collection<Class<?>> providedClasses()
ALDDataIO
public Object parse(Field field, Class<?> cl, String valueString) throws ALDDataIOProviderException
Note that the field
argument is ignored here.
The cl
passed to the method should contain the
class which is to be returned. If it is null, null is
returned. Likewise if something else goes wrong, the return value is null.
Note that 1D arrays have to be encoded in one of the following ways, i.e. with or without enclosing brackets:
2D arrays have to be encoded as follows:
parse
in class ALDStandardizedDataIOCmdline
field
- Field of object to be returnedcl
- Class of object to be returned.valueString
- Source from where to read data (e.g. a filename).ALDDataIOProviderException
ALDDataIOManagerCmdline
public String formatAsString(Object obj)
ALDStandardizedDataIOCmdline
obj
into the string return and make no
prior interpretation regarding a file to be used.formatAsString
in class ALDStandardizedDataIOCmdline
obj
- object to formatCopyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.