Tea Java Runtime API
Version 3.1.0

com.pdmfc.tea.runtime
Class SObjByteArray

java.lang.Object
  |
  +--com.pdmfc.tea.runtime.SObjByteArray

public class SObjByteArray
extends java.lang.Object

Instances of this class represent byte arrays in the Tea program.


Constructor Summary
SObjByteArray()
          Initializes an empty byte array.
SObjByteArray(byte[] bytes)
          Initializes the byte array.
SObjByteArray(byte[] bytes, int offset, int count)
          Initializes the byte array.
 
Method Summary
 byte[] getBytes()
          Fetches the array of bytes stored in this object.
 int getCount()
          Fetches the number of bytes stored.
 int getOffset()
           
 java.lang.String getStringValue()
          Fetches the conversion to a string of this byte array.
 void setContents(byte[] bytes, int offset, int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SObjByteArray

public SObjByteArray()
Initializes an empty byte array.

SObjByteArray

public SObjByteArray(byte[] bytes)
Initializes the byte array.
Parameters:
bytes -  

SObjByteArray

public SObjByteArray(byte[] bytes,
                     int offset,
                     int count)
Initializes the byte array.
Method Detail

setContents

public void setContents(byte[] bytes,
                        int offset,
                        int count)

getBytes

public byte[] getBytes()
Fetches the array of bytes stored in this object.
Returns:
A byte array.

getOffset

public int getOffset()

getCount

public int getCount()
Fetches the number of bytes stored.
Returns:
A byte array.

getStringValue

public java.lang.String getStringValue()
Fetches the conversion to a string of this byte array.
Returns:
The string resulting from the byte array conversion.

Tea Java Runtime API
Version 3.1.0

© 2002 PDM&FC, All Rights Reserved.