org.infolayer.model
Class ByteArrayBinary

java.lang.Object
  extended byorg.infolayer.model.ByteArrayBinary
All Implemented Interfaces:
Binary

public class ByteArrayBinary
extends java.lang.Object
implements Binary


Field Summary
 
Fields inherited from interface org.infolayer.model.Binary
NULL
 
Constructor Summary
ByteArrayBinary(byte[] data)
          Constructor for ByteArrayBinary.
 
Method Summary
 java.io.InputStream getInputStream()
           
 int[] getSize()
          TODO: Move this away, it does not belong here!
 boolean isOwnedBy(UmlObject object, UmlProperty property)
          Allows detection of 'self-assignments'
 long length()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayBinary

public ByteArrayBinary(byte[] data)
Constructor for ByteArrayBinary.

Method Detail

isOwnedBy

public boolean isOwnedBy(UmlObject object,
                         UmlProperty property)
Description copied from interface: Binary
Allows detection of 'self-assignments'

Specified by:
isOwnedBy in interface Binary

length

public long length()
Specified by:
length in interface Binary

getSize

public int[] getSize()
Description copied from interface: Binary
TODO: Move this away, it does not belong here! For image data, this method can be used to determine the size in an JDK 1.4 environment

Specified by:
getSize in interface Binary

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface Binary
See Also:
Binary.getInputStream()