net.sf.openv4j.protocolhandlers
Class DataBlock

java.lang.Object
  extended by net.sf.openv4j.protocolhandlers.DataBlock

public class DataBlock
extends Object

DOCUMENT ME!

Author:
aploese

Constructor Summary
DataBlock(int baseAddress, int size)
          Creates a new DataBlock object.
 
Method Summary
 int getBaseAddress()
           
 byte getByteAtPos(int pos)
           
 byte[] getBytes()
           
 int getLength()
           
 void setByteAtPos(int pos, int theData)
           
 void setBytesAtPos(int pos, byte[] theData)
           
 void writeTo(StringBuilder sb, boolean suppressFirstNewLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBlock

public DataBlock(int baseAddress,
                 int size)
Creates a new DataBlock object.

Parameters:
baseAddress - DOCUMENT ME!
size - DOCUMENT ME!
Method Detail

getBaseAddress

public int getBaseAddress()

getByteAtPos

public byte getByteAtPos(int pos)

getBytes

public byte[] getBytes()

getLength

public int getLength()

setByteAtPos

public void setByteAtPos(int pos,
                         int theData)

setBytesAtPos

public void setBytesAtPos(int pos,
                          byte[] theData)

writeTo

public void writeTo(StringBuilder sb,
                    boolean suppressFirstNewLine)


Copyright © 2010 OpenV4J. All Rights Reserved.