public class MendixBinary
extends com.mendix.core.objectmanagement.MendixObjectMemberImpl<java.io.InputStream>
IMendixObjectMember.MemberState, IMendixObjectMember.MemberValueState
Constructor and Description |
---|
MendixBinary(IMetaPrimitive primitive) |
MendixBinary(java.lang.String name) |
MendixBinary(java.lang.String name,
boolean v,
java.lang.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() |
java.io.InputStream |
getOriginalValue(IContext context) |
java.io.InputStream |
getValue(IContext context) |
java.io.InputStream |
getValueFromString(java.lang.String s)
Get value for this ObjectMember from a String
|
void |
parseAndStoreValue(IContext context,
java.lang.String s)
Parses a string to the inputstream and writes it to the connectionbus
|
java.lang.String |
parseValueToString(IContext context) |
void |
retrieveValue(IContext context,
java.io.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 |
setValue(IContext context,
java.io.InputStream value,
boolean performValidation)
Use
setValue instead as this is for internal use. |
void |
storeValue(IContext context,
java.io.InputStream value,
long length) |
checkReadAccess, checkWriteAccess, clone, equals, getComponent, getMemberValueState, getMxObject, getName, getState, getVirtualCaller, hashCode, hasReadAccess, hasWriteAccess, isVirtual, overrideReadAccess, overrideWriteAccess, parseInitialValueFromString, parseValueFromString, parseValueFromString, rollback, setInitialValue, setMemberValueState, setOriginalValue, setParentObject, setReadAccess, setState, setValue, setVirtual, setVirtualCaller, setWriteAccess, toString, toString
public MendixBinary(java.lang.String name)
name
- the name of the binarypublic MendixBinary(java.lang.String name, boolean v, java.lang.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 void setValue(IContext context, java.io.InputStream value, boolean performValidation)
IMendixObjectMember
setValue
instead as this is for internal use.setValue
in interface com.mendix.core.objectmanagement.MendixObjectMember<java.io.InputStream>
setValue
in interface IMendixObjectMember<java.io.InputStream>
setValue
in class com.mendix.core.objectmanagement.MendixObjectMemberImpl<java.io.InputStream>
value
- the value to setperformValidation
- to set if the data validation should be performed.public java.io.InputStream getValue(IContext context)
getValue
in interface com.mendix.core.objectmanagement.MendixObjectMember<java.io.InputStream>
getValue
in interface IMendixObjectMember<java.io.InputStream>
getValue
in class com.mendix.core.objectmanagement.MendixObjectMemberImpl<java.io.InputStream>
public java.io.InputStream getOriginalValue(IContext context)
getOriginalValue
in interface com.mendix.core.objectmanagement.MendixObjectMember<java.io.InputStream>
getOriginalValue
in interface IMendixObjectMember<java.io.InputStream>
getOriginalValue
in class com.mendix.core.objectmanagement.MendixObjectMemberImpl<java.io.InputStream>
public java.lang.String parseValueToString(IContext context)
parseValueToString
in interface com.mendix.core.objectmanagement.MendixObjectMember<java.io.InputStream>
parseValueToString
in interface IMendixObjectMember<java.io.InputStream>
parseValueToString
in class com.mendix.core.objectmanagement.MendixObjectMemberImpl<java.io.InputStream>
public void retrieveValue(IContext context, java.io.OutputStream out)
context
- out
- public void storeValue(IContext context, java.io.InputStream value, long length)
context
- value
- length
- public java.io.InputStream getValueFromString(java.lang.String s)
IMendixObjectMember
public void parseAndStoreValue(IContext context, java.lang.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