JNodeOS v1.1.5 API

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.


Constructor Summary
PaddingPacketSegment(int length)
           
 
Method Summary
 int getLength()
           
 int marshal(BufferHandle bh, int offset)
           
 java.lang.String toString()
           
 int unmarshal(BufferHandle bh, int offset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PaddingPacketSegment

public PaddingPacketSegment(int length)
Parameters:
length - The number of padding bytes in the segment.
Method Detail

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

JNodeOS v1.1.5 API

This documentation is Copyright (C) 1998-2001 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: http://www.cs.utah.edu/flux/janos/