org.infolayer.model
Class FileBinary

java.lang.Object
  extended byorg.infolayer.model.BinaryImpl
      extended byorg.infolayer.model.FileBinary
All Implemented Interfaces:
Binary
Direct Known Subclasses:
FileContainer

public class FileBinary
extends BinaryImpl


Field Summary
 
Fields inherited from interface org.infolayer.model.Binary
NULL
 
Constructor Summary
FileBinary(java.io.InputStream is)
          Generates a new temp file from the given input stream.
FileBinary(UmlObject owner, UmlProperty property, java.io.File file)
          Maps an existing file to a "Binary" object
 
Method Summary
 boolean equals(java.lang.Object c)
           
static Binary fromUrl(UmlClassifier c, java.lang.String url)
           
 java.io.File getFile()
           
 java.io.InputStream getInputStream()
           
 int[] getSize()
          TODO: Move this away, it does not belong here!
 long length()
           
 
Methods inherited from class org.infolayer.model.BinaryImpl
isOwnedBy
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBinary

public FileBinary(UmlObject owner,
                  UmlProperty property,
                  java.io.File file)
Maps an existing file to a "Binary" object


FileBinary

public FileBinary(java.io.InputStream is)
           throws java.io.IOException
Generates a new temp file from the given input stream. Used in Soap upload, but not in upload via the web interface.

Method Detail

getInputStream

public java.io.InputStream getInputStream()

length

public long length()

equals

public boolean equals(java.lang.Object c)

getFile

public java.io.File getFile()

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


fromUrl

public static Binary fromUrl(UmlClassifier c,
                             java.lang.String url)