All Packages Class Hierarchy This Package Previous Next Index
Class cpt.InputText
java.lang.Object
|
+----cpt.InputText
- public class InputText
- extends Object
This class parses metadata elements from plain text
(ISO Latin-1) metadata file.
The metadata elements must be one per line in the following
format:
dimension:value:weight
(weight is optional)
-
InputText()
-
-
InputText(String, Integer)
-
Constructs the InputText-object and opens the file indicated
by the location parameter.
-
main(String[])
-
-
ReadEntry(InputElement)
-
Parse one dataelement from the text file.
InputText
public InputText()
InputText
public InputText(String location,
Integer locationtype)
- Constructs the InputText-object and opens the file indicated
by the location parameter.
- Parameters:
- location - the source of the metadata (URL or filename)
- locationtype - the type of the source.
ReadEntry
public static InputElement ReadEntry(InputElement InputEntry)
- Parse one dataelement from the text file.
- Parameters:
- InputEntry - the info that was read corresponding
one metadata element
- Returns:
- 0, if there are no more metadataelements in the file
that is read.
1, otherwise
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index