Analytical Perspectives in Game Design


 

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bvyy.io.TextFileObjectProcessor

java.lang.Object
   |
   +----bvyy.io.TextFileObjectProcessor

public class TextFileObjectProcessor
extends Object
This class converts between the internal reprsentation of a list of parameters for an object and a text representation of the same object. It is a helper class to simplify the io aspects of the application.

Version:
0.0.1 14 June 1998
Author:
(c)1998 Brian Voon Yee Yap

Variable Index

 o COLUMN_TITLES_ROW
 o DEFAULT_ROW
 o endTag
 o GAME_ROW
 o startTag
 o trailerTag

Constructor Index

 o TextFileObjectProcessor()

Method Index

 o convertObjectToText(DefaultableVectorSet)
Convert an text representation to a internal representation.
 o convertTextToObject(Vector, String)
Convert an internal representation to a text representation.

Variables

 o startTag
 public static final String startTag
 o endTag
 public static final String endTag
 o trailerTag
 public static final String trailerTag
 o DEFAULT_ROW
 public static final String DEFAULT_ROW
 o GAME_ROW
 public static final String GAME_ROW
 o COLUMN_TITLES_ROW
 public static final String COLUMN_TITLES_ROW

Constructors

 o TextFileObjectProcessor
 public TextFileObjectProcessor()

Methods

 o convertTextToObject
 public static DefaultableVectorSet convertTextToObject(Vector theInput,
                                                        String theTag)
Convert an internal representation to a text representation.

Parameters:
theInput - a vector to be converted to text.
theTag, - the name of the section of text to convert to an object.
Returns:
s a vector of strings, one string per line for the text file.
 o convertObjectToText
 public static Vector convertObjectToText(DefaultableVectorSet theInput)
Convert an text representation to a internal representation.

Parameters:
theInput - a vector of strings to be converted to an internal representation.
Returns:
s a defautlable vector

All Packages  Class Hierarchy  This Package  Previous  Next  Index

22/11/99

 


See also: [Role Playing Games] [Game Engine]
© 1998, 1999 Brian Yap. These pages are available under the GNU licence.