edu.utah.janos.util
Class PaddingPacketSegment
java.lang.Object
|
+--edu.utah.janos.util.PaddingPacketSegment
- public class PaddingPacketSegment
- extends java.lang.Object
- implements PacketSegment
A PaddingPacketSegment implements the PacketSegment interface for `n'
padding bytes.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
PaddingPacketSegment
public PaddingPacketSegment(int length)
- Parameters:
length
- The number of padding bytes in the segment.
getLength
public int getLength()
- Specified by:
- getLength in interface PacketSegment
- Returns:
- The length of the pad.
marshal
public int marshal(BufferHandle bh,
int offset)
- Specified by:
- marshal in interface PacketSegment
- Tags copied from interface: PacketSegment
- Parameters:
bh
- The buffer to marshal this packet into.offset
- The offset in the buffer to start marshalling.
unmarshal
public int unmarshal(BufferHandle bh,
int offset)
- Specified by:
- unmarshal in interface PacketSegment
- Tags copied from interface: PacketSegment
- Parameters:
bh
- The buffer that contains the marshalled packet segments.offset
- The offset in the buffer to start unmarshalling.
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