com.crystaldecisions.sdk.occa.report.lib
Class ByteArray

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.lib.ByteArray
All Implemented Interfaces:
IByteArray

public class ByteArray
extends java.lang.Object
implements IByteArray

This class defines a collection of bytes.


Constructor Summary
ByteArray()
           Constructs an empty collection.
ByteArray(byte[] bytes)
           Constructs a new collection using the specified byte array.
 
Method Summary
 java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
          For internal use only.
 void endElement(java.lang.String eleName, java.util.Map objState)
          For internal use only.
 void fromString(java.lang.String arrayValue)
           Populates the collection list with data from a string.
 byte[] getBytes()
           Returns an array of bytes.
 boolean hasContent(java.lang.Object obj)
           
 void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
          For internal use only.
 boolean readElementCharacters(java.lang.String eleName, char[] ch, org.xml.sax.Attributes attrs, java.util.Map objState)
          For internal use only.
 void save(java.lang.String fileName)
          For internal use only.
 void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt)
          For internal use only.
 void save(XMLWriter writer, XMLSerializationContext ctxt)
          For internal use only.
 void saveContents(XMLWriter writer, XMLSerializationContext ctxt)
          For internal use only.
 void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
          For internal use only.
 java.lang.String toString()
           Returns the collection as a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteArray

public ByteArray()

Constructs an empty collection.


ByteArray

public ByteArray(byte[] bytes)

Constructs a new collection using the specified byte array.

Parameters:
bytes - The byte array to be used.
Method Detail

createMember

public java.lang.Object createMember(java.lang.String eleName,
                                     org.xml.sax.Attributes attrs,
                                     XMLSerializationContext ctxt,
                                     java.util.Map objState,
                                     boolean[] bLoaded)

For internal use only.


endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)

For internal use only.


hasContent

public boolean hasContent(java.lang.Object obj)

fromString

public void fromString(java.lang.String arrayValue)
Description copied from interface: IByteArray

Populates the collection list with data from a string. The string should be in the format valueX="<Value>". Values are separated by a comma. For example: value1="1",value2="No",value3="3.141".

Specified by:
fromString in interface IByteArray
Parameters:
arrayValue - The string that will be used to populate the collection's array.

getBytes

public byte[] getBytes()
Description copied from interface: IByteArray

Returns an array of bytes.

Specified by:
getBytes in interface IByteArray
Returns:
An array of bytes.

readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)

For internal use only.


readElementCharacters

public boolean readElementCharacters(java.lang.String eleName,
                                     char[] ch,
                                     org.xml.sax.Attributes attrs,
                                     java.util.Map objState)

For internal use only.


save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

save

public void save(java.lang.String fileName)

For internal use only.


saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException

For internal use only.

Throws:
java.io.IOException

startElement

public void startElement(java.lang.String eleName,
                         java.util.Map objState,
                         org.xml.sax.Attributes attrs)

For internal use only.


toString

public java.lang.String toString()
Description copied from interface: IByteArray

Returns the collection as a String.

Specified by:
toString in interface IByteArray
Overrides:
toString in class java.lang.Object
Returns:
A String containing the values in this collection.