Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.core.objectmanagement.member.MendixBinary Class Reference

Inherits MendixObjectMember< InputStream >.

List of all members.

Public Member Functions

 MendixBinary (String name)
 MendixBinary (String name, boolean v, String virtualActionName)
void setValue (IContext context, byte[] bytes)
String parseValueToString (IContext context)
void retrieveValue (IContext context, OutputStream out)
void storeValue (IContext context, InputStream value, long length)
InputStream getValueFromString (String s)
void parseAndStoreValue (IContext context, String s)
void commitValueAsFileDocument (IContext context)
long getLength ()
void setLength (long length)

Detailed Description

Binary object member.


Constructor & Destructor Documentation

com.mendix.core.objectmanagement.member.MendixBinary.MendixBinary ( String  name)
Parameters:
namethe name of the binary
com.mendix.core.objectmanagement.member.MendixBinary.MendixBinary ( String  name,
boolean  v,
String  virtualActionName 
)

Creates MendixBinary with the given virtual settings

Parameters:
namethe name of the binary
vboolean defining whether this primitive is virtual or not
virtualActionNamethe CoreAction which will be called when using getValue

Member Function Documentation

void com.mendix.core.objectmanagement.member.MendixBinary.commitValueAsFileDocument ( IContext  context)

commits the value of the binary as a filedocument

Parameters:
context
Exceptions:
CoreException
long com.mendix.core.objectmanagement.member.MendixBinary.getLength ( )
Returns:
the length
InputStream com.mendix.core.objectmanagement.member.MendixBinary.getValueFromString ( String  s)
void com.mendix.core.objectmanagement.member.MendixBinary.parseAndStoreValue ( IContext  context,
String  s 
)

Parses a string to the inputstream and writes it to the connectionbus

Parameters:
context
s
String com.mendix.core.objectmanagement.member.MendixBinary.parseValueToString ( IContext  context)
void com.mendix.core.objectmanagement.member.MendixBinary.retrieveValue ( IContext  context,
OutputStream  out 
)

The contents of the binary field will be copied on the OutputStream. The given OutputStream will be closed.

Parameters:
context
out
void com.mendix.core.objectmanagement.member.MendixBinary.setLength ( long  length)
Parameters:
lengththe length to set
void com.mendix.core.objectmanagement.member.MendixBinary.setValue ( IContext  context,
byte[]  bytes 
)

sets the value of the binary

Parameters:
context
bytes
void com.mendix.core.objectmanagement.member.MendixBinary.storeValue ( IContext  context,
InputStream  value,
long  length 
)
Parameters:
context
value
length

The documentation for this class was generated from the following file: