org.infolayer.model
Class FileBinary
java.lang.Object
org.infolayer.model.BinaryImpl
org.infolayer.model.FileBinary
- All Implemented Interfaces:
- Binary
- Direct Known Subclasses:
- FileContainer
- public class FileBinary
- extends BinaryImpl
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 |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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)