edu.utah.janos.nodeos
Class pj_DemultiplexKey.ByteMask
java.lang.Object
|
+--edu.utah.janos.nodeos.pj_DemultiplexKey.KeySegment
|
+--edu.utah.janos.nodeos.pj_DemultiplexKey.ByteMask
- Enclosing class:
- edu.utah.janos.nodeos.pj_DemultiplexKey
- protected static class pj_DemultiplexKey.ByteMask
- extends edu.utah.janos.nodeos.pj_DemultiplexKey.KeySegment
A segment that matches a series of bytes.
Field Summary |
int |
length
Number of bytes to match |
byte[] |
mask
Bitmask of which bytes to match |
byte[] |
sequence
The actual bytes to match |
Fields inherited from class edu.utah.janos.nodeos.pj_DemultiplexKey.KeySegment |
offset |
Method Summary |
int |
match(byte[] payload,
int payloadStart,
int payloadLength)
Attempt to match this segment in the given payload. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
length
public final int length
- Number of bytes to match
sequence
public final byte[] sequence
- The actual bytes to match
mask
public final byte[] mask
- Bitmask of which bytes to match
pj_DemultiplexKey.ByteMask
public pj_DemultiplexKey.ByteMask(int offset,
int length,
byte[] sequence,
byte[] mask)
match
public int match(byte[] payload,
int payloadStart,
int payloadLength)
- Description copied from class: edu.utah.janos.nodeos.pj_DemultiplexKey.KeySegment
- Attempt to match this segment in the given payload.
- Overrides:
- match in class edu.utah.janos.nodeos.pj_DemultiplexKey.KeySegment
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
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