Analytical Perspectives in Game Design


 

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bvyy.io.DataStreamMaker

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

public class DataStreamMaker
extends Object
implements Runnable
This (singleton class) is used to make a data input stream based on the type of address provided.

This class needs to be updated to allow it to determine if the input is ascii or unicode and react accordingly.

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

Variable Index

 o DATA_STREAM_FILE_ID
This is the ID for a local disk file
 o DATA_STREAM_HTML_ID
This is the ID for a HTML file
 o DATA_STREAM_MAKER
This is a public variable, that all classes should use to access this object.

Method Index

 o getReader(String)
Returns an input stream based on the type of address provided.
 o getThread()
Returns access to this object's thread
 o getWriter(String)
Returns an output stream based on the type of address provided.
 o insanciate()
Creates the singleton Data Stream Maker.
 o run()
implements the run method of the runnable interface.

Variables

 o DATA_STREAM_MAKER
 public static DataStreamMaker DATA_STREAM_MAKER
This is a public variable, that all classes should use to access this object. They cannot create a Data Stream directly because the constructor is private.

 o DATA_STREAM_HTML_ID
 public static final String DATA_STREAM_HTML_ID
This is the ID for a HTML file

 o DATA_STREAM_FILE_ID
 public static final String DATA_STREAM_FILE_ID
This is the ID for a local disk file

Methods

 o insanciate
 public static DataStreamMaker insanciate()
Creates the singleton Data Stream Maker.

 o getReader
 public synchronized BufferedReader getReader(String theInputStreamName) throws IOException
Returns an input stream based on the type of address provided.

Returns:
an input stream based on the type of address provided.
 o getWriter
 public synchronized BufferedWriter getWriter(String theOutputStreamName) throws IOException
Returns an output stream based on the type of address provided.

Returns:
an output stream based on the type of address provided.
 o getThread
 public synchronized Thread getThread()
Returns access to this object's thread

Returns:
access to this object's thread
See Also:
Thread
 o run
 public void run()
implements the run method of the runnable interface.

See Also:
Runnable

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.