Inherited by fr.dyade.aaa.agent.PoolNetwork.NetSession.NetworkOutputStream, and fr.dyade.aaa.agent.SimpleNetwork.NetworkOutputStream.
Inheritance diagram for fr.dyade.aaa.agent.BufferedMessageOutputStream:


Public Member Functions | |
| BufferedMessageOutputStream () throws IOException | |
| BufferedMessageOutputStream (int size) throws IOException | |
| final void | write (int b) throws IOException |
| final void | write (byte b[], int off, int len) throws IOException |
| final void | flush () throws IOException |
Protected Attributes | |
| OutputStream | out |
This OutputStream allows the replacement of the underlying stream and the serialisation of object through an internal ObjectOutputStream.
Be careful this OutputStream is not synchronized.
Definition at line 36 of file BufferedMessageOutputStream.java.
| fr.dyade.aaa.agent.BufferedMessageOutputStream.BufferedMessageOutputStream | ( | ) | throws IOException |
Creates a new output stream to write data to an unspecified underlying output stream through a buffer with default size.
| IOException | if the internal ObjectOutputStream cannot be correctly initialized. |
Definition at line 49 of file BufferedMessageOutputStream.java.
| fr.dyade.aaa.agent.BufferedMessageOutputStream.BufferedMessageOutputStream | ( | int | size | ) | throws IOException |
Creates a new output stream to write data to an unspecified underlying output stream through a buffer with the specified size.
| size | the buffer size. |
| IllegalArgumentException | if size is less than 0. | |
| IOException | if the internal ObjectOutputStream cannot be correctly initialized. |
Definition at line 62 of file BufferedMessageOutputStream.java.
| final void fr.dyade.aaa.agent.BufferedMessageOutputStream.write | ( | int | b | ) | throws IOException [virtual] |
Writes the specified byte to this output stream.
| b | the byte to be written. |
| IOException | if an I/O error occurs. |
Implements fr.dyade.aaa.agent.MessageOutputStream.
Definition at line 85 of file BufferedMessageOutputStream.java.
References fr.dyade.aaa.agent.MessageOutputStream.buf, and fr.dyade.aaa.agent.MessageOutputStream.count.
| final void fr.dyade.aaa.agent.BufferedMessageOutputStream.write | ( | byte | b[], | |
| int | off, | |||
| int | len | |||
| ) | throws IOException [virtual] |
Writes len bytes from the specified byte array starting at offset off to this output stream.
Ordinarily this method stores bytes from the given array into this stream's buffer, flushing the buffer to the underlying output stream as needed. If the requested length is at least as large as this stream's buffer, however, then this method will flush the buffer and write the bytes directly to the underlying output stream.
| b | the data. | |
| off | the start offset in the data. | |
| len | the number of bytes to write. |
| IOException | if an I/O error occurs. |
Implements fr.dyade.aaa.agent.MessageOutputStream.
Definition at line 106 of file BufferedMessageOutputStream.java.
References fr.dyade.aaa.agent.MessageOutputStream.buf, fr.dyade.aaa.agent.MessageOutputStream.count, fr.dyade.aaa.agent.MessageOutputStream.getLogger(), and fr.dyade.aaa.agent.BufferedMessageOutputStream.out.
Here is the call graph for this function:

| final void fr.dyade.aaa.agent.BufferedMessageOutputStream.flush | ( | ) | throws IOException |
Flushes this output stream.
This forces any buffered output bytes to be written out to the underlying output stream.
| IOException | if an I/O error occurs. |
Definition at line 133 of file BufferedMessageOutputStream.java.
References fr.dyade.aaa.agent.BufferedMessageOutputStream.out.
OutputStream fr.dyade.aaa.agent.BufferedMessageOutputStream.out [protected] |
The underlying output stream.
Definition at line 40 of file BufferedMessageOutputStream.java.
Referenced by fr.dyade.aaa.agent.BufferedMessageOutputStream.flush(), fr.dyade.aaa.agent.BufferedMessageOutputStream.write(), and fr.dyade.aaa.agent.SimpleNetwork.NetworkOutputStream.writeMessage().
1.5.0