edu.utah.janos.nodeos
Class pj_ANEPStreamLayer.StreamReader
java.lang.Object
|
+--edu.utah.janos.nodeos.pj_ANEPStreamLayer.StreamReader
- Enclosing class:
- edu.utah.janos.nodeos.pj_ANEPStreamLayer
- protected abstract static class pj_ANEPStreamLayer.StreamReader
- extends java.lang.Object
- implements java.lang.Runnable
StreamReader is an inner class used to read from an InputStream and
produce PacketBuffer's. The stream is expected to contain only
ANEP packets since the length of the packet encoded in the ANEP
header is used to delimit the beginning and end of packets.
Method Summary |
protected void |
acquire()
|
protected abstract boolean |
handlePacket(edu.utah.janos.nodeos.pj_BufferHandle pb)
Handle a packet parsed out of the stream |
protected boolean |
release()
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
pj_ANEPStreamLayer.StreamReader
protected pj_ANEPStreamLayer.StreamReader(java.io.InputStream is,
edu.utah.janos.nodeos.pj_BufferHandle pb)
acquire
protected void acquire()
release
protected boolean release()
handlePacket
protected abstract boolean handlePacket(edu.utah.janos.nodeos.pj_BufferHandle pb)
- Handle a packet parsed out of the stream
run
public void run()
- Specified by:
- run in interface java.lang.Runnable
This documentation is Copyright (C) 1998-2002 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project web site: http://www.cs.utah.edu/flux/janos/
Generated on Mar 17, 2002