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)


Constructor Index

 o InputText()
 o InputText(String, Integer)
Constructs the InputText-object and opens the file indicated by the location parameter.

Method Index

 o main(String[])
 o ReadEntry(InputElement)
Parse one dataelement from the text file.

Constructors

 o InputText

 public InputText()

 o 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.

Methods

 o 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
 o main

 public static void main(String args[])



All Packages  Class Hierarchy  This Package  Previous  Next  Index