prupp
Class Sender
java.lang.Object
|
+--prupp.Sender
- public class Sender
- extends java.lang.Object
This class sends filtered data to the assigned outputstreams.
Constructor Summary |
Sender(java.io.DataOutputStream os,
java.io.DataOutputStream cache,
java.net.URL url)
The standard constructor. |
Method Summary |
void |
addText(byte[] v,
int i)
Add text to handle |
void |
cleanup()
Sends any remaining text (Filters may leave data they are uncertain about). |
void |
filter()
Handle the text by filtering it and also sending it. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Sender
public Sender(java.io.DataOutputStream os,
java.io.DataOutputStream cache,
java.net.URL url)
- The standard constructor.
- Parameters:
os
- the standard stream to send to.cache
- the cachefile if any (null = no cache).url
- the URL were writing from
addText
public void addText(byte[] v,
int i)
- Add text to handle
- Parameters:
v
- the bytes we want handledi
- the number of bytes to add (OBS this need not be v.size)
filter
public void filter()
throws java.io.IOException
- Handle the text by filtering it and also sending it.
cleanup
public void cleanup()
- Sends any remaining text (Filters may leave data they are uncertain about).