wttools.protocols.snmp
Interface EncodeDecode

All Known Implementing Classes:
DecodeFromBuffer, EncodeInBuffer

public interface EncodeDecode

EncodeDecode.java Created: Saturday Dec 08 2001

Version:
$Revision: 1.1 $
Author:
Kantharaj B R

Method Summary
 byte[] getBuffer()
          getBuffer method returns the handle buffer of the data element.
 int getBufferLength()
          getBufferLength method returns the length of the buffer of the data element.
 int getCurrentPosition()
          getCurrentPosition method returns the value of the current data bit.
 int getNumberOfBytesLeft()
          getNumberOfBytesLeft method returns the numbers of Bytes left to be parsed.
 boolean hasData()
          hasData method returns whether the variable element has data or not.
 void reset()
          reset method resets the variable data element.
 void setCurrentPosition(int position)
          setCurrentPosition method sets the specified bit to 1.
 

Method Detail

reset

public void reset()
reset method resets the variable data element.
Returns:
an void

hasData

public boolean hasData()
hasData method returns whether the variable element has data or not.
Returns:
an boolean

getBuffer

public byte[] getBuffer()
getBuffer method returns the handle buffer of the data element.
Returns:
an byte[]

getBufferLength

public int getBufferLength()
getBufferLength method returns the length of the buffer of the data element.
Returns:
an int

setCurrentPosition

public void setCurrentPosition(int position)
setCurrentPosition method sets the specified bit to 1.
Parameters:
position - a int value
Returns:
an void

getCurrentPosition

public int getCurrentPosition()
getCurrentPosition method returns the value of the current data bit.
Returns:
an int

getNumberOfBytesLeft

public int getNumberOfBytesLeft()
getNumberOfBytesLeft method returns the numbers of Bytes left to be parsed.
Returns:
an int


Copyright GNU, wttools developers Team.