|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
mobnet.OutputStream
OutputStream.java - Class provides OutputStream functionality based on our Virtual Network This class is meant to be internally instatiated within the Socket Contstructor, therefore it should not be instantiated manually.
| Constructor Summary | |
OutputStream(java.lang.String destIP,
int port)
Constructor creates a new OutputStream which sends its packets to the specified port at the specified IP. |
|
| Method Summary | |
void |
close()
Closes this output stream and releases any system resources associated with this stream. |
void |
flush()
As we are using a Virtual Network no bytes should be being buffered and so this method is useless |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int i)
Writes the specified byte to this output stream. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OutputStream(java.lang.String destIP,
int port)
destIP - The IP Address to which this OutputStream sends its dataport - The Port at which this OutputStream sends its data| Method Detail |
public void write(byte[] b)
throws java.io.IOException
b - The data.
java.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
b - The data.off - the start offset in the data.len - the number of bytes to write
java.io.IOException
public void write(int i)
throws java.io.IOException
i - the byte to be written
java.io.IOExceptionpublic void flush()
public void close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||