Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members

container.ThreadAwareOutputStream Class Reference

List of all members.

Public Member Functions

 ThreadAwareOutputStream (OutputStream aDefaultOutputStream)
void write (int w) throws IOException
void write (byte[] b, int offset, int length) throws IOException
synchronized void attachFile (Object th, File file) throws IOException
synchronized void removeFile (Object th) throws IOException
void flush () throws IOException
void flush (Object th) throws IOException

Protected Member Functions

OutputStream getOutputStream (Object th) throws IOException

Protected Attributes

HashMap map = null
OutputStream defaultOutput = null

Detailed Description

Class ThreadAwareOutputStream - Represents the output controller

Each application must write its output in its own files. This class is responsible for redirect the output of applications to their correct output files.

Author:
Rafael Fernandes Lopes


Constructor & Destructor Documentation

container.ThreadAwareOutputStream.ThreadAwareOutputStream OutputStream  aDefaultOutputStream  ) 
 

Class constructor

Parameters:
aDefaultOutputStream - If no files are associated to a thread, the write will be done in the aDefaultOutputStream


Member Function Documentation

synchronized void container.ThreadAwareOutputStream.attachFile Object  th,
File  file
throws IOException
 

Associates an object classloader to a file

Parameters:
thread - Object which the classloader will be associated to the file
file - File where 'th' will write its output

void container.ThreadAwareOutputStream.flush Object  th  )  throws IOException
 

void container.ThreadAwareOutputStream.flush  )  throws IOException
 

OutputStream container.ThreadAwareOutputStream.getOutputStream Object  th  )  throws IOException [protected]
 

Returns the OutputStream associated to a thread th

Parameters:
th 

synchronized void container.ThreadAwareOutputStream.removeFile Object  th  )  throws IOException
 

Removes the association of a thread to a file

Parameters:
th - Thread to have the association removed

void container.ThreadAwareOutputStream.write byte[]  b,
int  offset,
int  length
throws IOException
 

Writes a character in this OutputStream

Parameters:
w - The character to be written in this OutputStream

void container.ThreadAwareOutputStream.write int  w  )  throws IOException
 

Writes a character in this OutputStream

Parameters:
w - The character to be written in this OutputStream


Member Data Documentation

OutputStream container.ThreadAwareOutputStream.defaultOutput = null [protected]
 

HashMap container.ThreadAwareOutputStream.map = null [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Feb 17 09:37:57 2006 for MAG by  doxygen 1.4.4