galaxy.lang
Class BinaryObject

java.lang.Object
  |
  +--galaxy.lang.GalaxyObject
        |
        +--galaxy.lang.BinaryObject
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Float32, Float64, GBinary, Int16, Int32, Int64

Deprecated. As of Galaxy Communicator 3.0.

public abstract class BinaryObject
extends GalaxyObject


Field Summary
protected  byte[] data
          Deprecated.  
 
Fields inherited from class galaxy.lang.GalaxyObject
GAL_BINARY, GAL_CLAUSE_FRAME, GAL_FLOAT, GAL_FLOAT_32, GAL_FLOAT_64, GAL_FRAME, GAL_FREE, GAL_INT, GAL_INT_16, GAL_INT_32, GAL_INT_64, GAL_KEYWORD, GAL_LIST, GAL_PRED_FRAME, GAL_PROXY, GAL_PTR, GAL_STRING, GAL_SYMBOL, GAL_TAG, GAL_TOKEN, GAL_TOPIC_FRAME, nameToType, type, typeToName
 
Constructor Summary
BinaryObject()
          Deprecated.  
 
Method Summary
 void append(byte[] b)
          Deprecated. Appends bytes to this object's byte array.
 byte[] getBytes()
          Deprecated.  
 int getSize()
          Deprecated. Returns the size of this object's byte array.
static byte[] readBinaryFile(java.lang.String file)
          Deprecated. Converts a binary file into an array of bytes.
 java.lang.String toEncodedString()
          Deprecated. Returns this object's byte array as an encoded string.
 java.lang.String toFormattedString()
          Deprecated. Returns this object's byte array as a formatted string.
 java.lang.String toString()
          Deprecated. Returns this object's byte array as a string.
 
Methods inherited from class galaxy.lang.GalaxyObject
getType, getTypeForObject, getTypeName, nameType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected byte[] data
Deprecated. 
Constructor Detail

BinaryObject

public BinaryObject()
Deprecated. 
Method Detail

getBytes

public byte[] getBytes()
Deprecated. 

getSize

public int getSize()
Deprecated. 
Returns the size of this object's byte array.
Returns:
the array's size or -1 if the byte array does not exist

toString

public java.lang.String toString()
Deprecated. 
Returns this object's byte array as a string.
Overrides:
toString in class java.lang.Object
Returns:
the string or null if the byte array does not exist

toEncodedString

public java.lang.String toEncodedString()
Deprecated. 
Returns this object's byte array as an encoded string.
Returns:
the encoded string or null if the byte array does not exist

toFormattedString

public java.lang.String toFormattedString()
Deprecated. 
Returns this object's byte array as a formatted string.
Returns:
the formatted string or null if the byte array does not exist

append

public void append(byte[] b)
Deprecated. 
Appends bytes to this object's byte array. If this object's byte array was never initialized, this method does nothing.
Parameters:
b - array of bytes to append

readBinaryFile

public static byte[] readBinaryFile(java.lang.String file)
                             throws java.io.IOException
Deprecated. 
Converts a binary file into an array of bytes.
Parameters:
file - the name of the binary file to convert
Returns:
the contents of the file in a byte array or null if there was an error