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
-
DATA_STREAM_FILE_ID
- This is the ID for a local disk file
-
DATA_STREAM_HTML_ID
- This is the ID for a HTML file
-
DATA_STREAM_MAKER
- This is a public variable, that all classes should use to access this
object.
-
getReader(String)
- Returns an input stream based on the type of address provided.
-
getThread()
- Returns access to this object's thread
-
getWriter(String)
- Returns an output stream based on the type of address provided.
-
insanciate()
- Creates the singleton Data Stream Maker.
-
run()
- implements the run method of the runnable interface.
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.
DATA_STREAM_HTML_ID
public static final String DATA_STREAM_HTML_ID
- This is the ID for a HTML file
DATA_STREAM_FILE_ID
public static final String DATA_STREAM_FILE_ID
- This is the ID for a local disk file
insanciate
public static DataStreamMaker insanciate()
- Creates the singleton Data Stream Maker.
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.
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.
getThread
public synchronized Thread getThread()
- Returns access to this object's thread
- Returns:
- access to this object's thread
- See Also:
- Thread
run
public void run()
- implements the run method of the runnable interface.
- See Also:
- Runnable
All Packages Class Hierarchy This Package Previous Next Index
|