net.sf.magicproject.network
Class MInputStream

java.lang.Object
  extended by net.sf.magicproject.network.MInputStream

public class MInputStream
extends java.lang.Object

Since:
0.2c
Author:
Fabrice Daugan

Constructor Summary
MInputStream(java.io.InputStream inputStream)
          create a new instance of MInputStream
MInputStream(java.io.InputStream inputStream, java.io.OutputStream outputStream)
          create a new instance of MInputStream
 
Method Summary
 void flush()
          flush the current outputstream
 java.lang.String readLine()
          read a line from inputstream
 void sendLine(java.lang.String line)
          write a specified line in the outputStream stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MInputStream

public MInputStream(java.io.InputStream inputStream)
create a new instance of MInputStream

Parameters:
inputStream - is the inputStream where will be read the bytes

MInputStream

public MInputStream(java.io.InputStream inputStream,
                    java.io.OutputStream outputStream)
create a new instance of MInputStream

Parameters:
inputStream - is the inputStream where will be read the bytes
outputStream - is the OutputStream where will be sent the bytes
Method Detail

readLine

public java.lang.String readLine()
read a line from inputstream

Returns:
the line read from the inputstream

sendLine

public void sendLine(java.lang.String line)
write a specified line in the outputStream stream.

Parameters:
line - is the string to write

flush

public void flush()
flush the current outputstream



Copyright © 2003-2007 Magic-Project. All Rights Reserved.