com.tapina.robe.runtime
Class BinaryDataSource

java.lang.Object
  extended bycom.tapina.robe.runtime.BinaryDataSource
Direct Known Subclasses:
ByteArray, MemoryMap

public abstract class BinaryDataSource
extends java.lang.Object

Created by IntelliJ IDEA. User: gareth Date: Jul 8, 2005 Time: 11:59:38 AM To change this template use File | Settings | File Templates.


Constructor Summary
BinaryDataSource()
           
 
Method Summary
abstract  long get5ByteValue(int address)
           
abstract  ByteArray getByteArray(int address, int count, boolean create)
          Get an object which allows direct access to the underlying data block for the specified byte range.
abstract  byte[] getBytes(int address, int count)
          Take a copy of a set of bytes from the memory map.
 java.lang.String getString0_10_13(int address)
           
 java.lang.String getString0(int address)
          Load a zero-terminated string from memory.
 java.lang.String getStringControlTerminated(int offset)
           
 java.lang.String getStringControlTerminated(int offset, int length)
           
 java.lang.String getStringN(int offset, int maxLength)
           
abstract  int[] getWords(int address, int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryDataSource

public BinaryDataSource()
Method Detail

getString0

public final java.lang.String getString0(int address)
Load a zero-terminated string from memory. Encoding is assumed to be ISO-8859-1.

Parameters:
address -
Returns:
String loaded

getString0_10_13

public final java.lang.String getString0_10_13(int address)

getStringControlTerminated

public final java.lang.String getStringControlTerminated(int offset)

getStringControlTerminated

public final java.lang.String getStringControlTerminated(int offset,
                                                         int length)

getStringN

public final java.lang.String getStringN(int offset,
                                         int maxLength)

getByteArray

public abstract ByteArray getByteArray(int address,
                                       int count,
                                       boolean create)
Get an object which allows direct access to the underlying data block for the specified byte range.

Parameters:
address - address for which to find bytes
count - size of byte block to allow access to
create -
Returns:
ByteArray which reads/writes through to underlying data block.

getBytes

public abstract byte[] getBytes(int address,
                                int count)
Take a copy of a set of bytes from the memory map. Use getByteArray(int,int,boolean) instead for efficiency.

Parameters:
address - address at which to load bytes
count - number of bytes to load
Returns:
array containing bytes loaded from specified address

get5ByteValue

public abstract long get5ByteValue(int address)

getWords

public abstract int[] getWords(int address,
                               int count)


Copyright © 2003-2005 . All Rights Reserved.