public class MendixBinary extends com.mendix.core.objectmanagement.MendixObjectMemberImpl<InputStream>
IMendixObjectMember.MemberState, IMendixObjectMember.MemberValueState
Constructor and Description |
---|
MendixBinary(IMetaPrimitive primitive) |
MendixBinary(String name) |
MendixBinary(String name,
boolean v,
String virtualActionName)
Creates MendixBinary with the given virtual settings
|
Modifier and Type | Method and Description |
---|---|
void |
commitValueAsFileDocument(IContext context)
commits the value of the binary as a filedocument
|
long |
getLength() |
InputStream |
getValueFromString(String s)
Get value for this ObjectMember from a String
|
void |
parseAndStoreValue(IContext context,
String s)
Parses a string to the inputstream and writes it to the connectionbus
|
String |
parseValueToString(IContext context) |
void |
retrieveValue(IContext context,
OutputStream out)
The contents of the binary field will be copied on the OutputStream.
|
void |
setLength(long length) |
void |
setValue(IContext context,
byte[] bytes)
sets the value of the binary
|
void |
storeValue(IContext context,
InputStream value,
long length) |
checkReadAccess, checkWriteAccess, clone, equals, getComponent, getMemberValueState, getMxObject, getName, getOriginalValue, getState, getValue, getVirtualCaller, hashCode, hasReadAccess, hasWriteAccess, isVirtual, overrideReadAccess, overrideWriteAccess, parseInitialValueFromString, parseValueFromString, parseValueFromString, setInitialValue, setMemberValueState, setOriginalValue, setParentObject, setReadAccess, setState, setValue, setValue, setVirtual, setVirtualCaller, setWriteAccess, toString, toString
public MendixBinary(String name)
name
- the name of the binarypublic MendixBinary(String name, boolean v, String virtualActionName)
name
- the name of the binaryv
- boolean defining whether this primitive is virtual or notvirtualActionName
- the CoreAction which will be called when using getValuepublic MendixBinary(IMetaPrimitive primitive)
public void setValue(IContext context, byte[] bytes)
context
- bytes
- public String parseValueToString(IContext context)
parseValueToString
in interface com.mendix.core.objectmanagement.MendixObjectMember<InputStream>
parseValueToString
in interface IMendixObjectMember<InputStream>
parseValueToString
in class com.mendix.core.objectmanagement.MendixObjectMemberImpl<InputStream>
public void retrieveValue(IContext context, OutputStream out)
context
- out
- public void storeValue(IContext context, InputStream value, long length)
context
- value
- length
- public InputStream getValueFromString(String s)
IMendixObjectMember
public void parseAndStoreValue(IContext context, String s)
context
- s
- public void commitValueAsFileDocument(IContext context)
context
- com.mendix.core.CoreException
public long getLength()
public void setLength(long length)
length
- the length to set