Package deltix.qsrv.hf.pub.codec.intp
Class PropertySupport
- java.lang.Object
-
- deltix.qsrv.hf.pub.codec.intp.PropertySupport
-
- All Implemented Interfaces:
ReadableValue,WritableValue
public abstract class PropertySupport extends java.lang.Object implements WritableValue, ReadableValue
Supports binding to .NET properties
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Objectmsg
-
Constructor Summary
Constructors Constructor Description PropertySupport()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetArrayLength()voidgetBinary(int srcOffset, int length, byte[] dest, int destOffset)voidgetBinary(int offset, int length, java.io.OutputStream out)intgetBinaryLength()java.lang.StringgetString()booleanisNull()Always returnsfalsefor non-nullable field.ReadableValuenextReadableElement()WritableValuenextWritableElement()Returns a transient (reused by interface implementation) WritableValue object for the next element of the array.java.io.InputStreamopenBinary()abstract java.lang.ObjectreadObject()voidsetArrayLength(int len)Set length of the array.protected static voidthrowException()voidwriteBinary(byte[] data, int offset, int length)voidwriteNull()abstract voidwriteObject(java.lang.Object value)voidwriteString(java.lang.CharSequence value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface deltix.qsrv.hf.pub.ReadableValue
getBoolean, getByte, getChar, getDouble, getFieldDecoder, getFloat, getInt, getLong, getShort
-
Methods inherited from interface deltix.qsrv.hf.pub.WritableValue
getFieldEncoder, writeBoolean, writeChar, writeDouble, writeFloat, writeInt, writeLong
-
-
-
-
Method Detail
-
writeString
public void writeString(java.lang.CharSequence value)
- Specified by:
writeStringin interfaceWritableValue
-
setArrayLength
public void setArrayLength(int len)
Description copied from interface:WritableValueSet length of the array. It must be called prior to nextWritableElement- Specified by:
setArrayLengthin interfaceWritableValue- Parameters:
len- length of the array
-
nextWritableElement
public WritableValue nextWritableElement()
Description copied from interface:WritableValueReturns a transient (reused by interface implementation) WritableValue object for the next element of the array.
WritableValue.setArrayLength(int)method must be called before this method.
Client code must not cache the reference for further usage.
Usage sample:encoder.setArrayLength(10); for(int i=0; i<10; i++) { WritableValue v = encoder.nextWritableElement (i); v.setInt(i); }- Specified by:
nextWritableElementin interfaceWritableValue- Returns:
- reference to WritableValue object
-
writeBinary
public void writeBinary(byte[] data, int offset, int length)- Specified by:
writeBinaryin interfaceWritableValue
-
writeNull
public void writeNull()
- Specified by:
writeNullin interfaceWritableValue
-
openBinary
public java.io.InputStream openBinary() throws NullValueException- Specified by:
openBinaryin interfaceReadableValue- Throws:
NullValueException
-
isNull
public boolean isNull()
Description copied from interface:ReadableValueAlways returnsfalsefor non-nullable field.- Specified by:
isNullin interfaceReadableValue
-
getString
public java.lang.String getString() throws NullValueException- Specified by:
getStringin interfaceReadableValue- Throws:
NullValueException
-
getArrayLength
public int getArrayLength() throws NullValueException- Specified by:
getArrayLengthin interfaceReadableValue- Throws:
NullValueException
-
nextReadableElement
public ReadableValue nextReadableElement() throws NullValueException
- Specified by:
nextReadableElementin interfaceReadableValue- Throws:
NullValueException
-
getBinaryLength
public int getBinaryLength() throws NullValueException- Specified by:
getBinaryLengthin interfaceReadableValue- Throws:
NullValueException
-
getBinary
public void getBinary(int offset, int length, java.io.OutputStream out) throws NullValueException- Specified by:
getBinaryin interfaceReadableValue- Throws:
NullValueException
-
getBinary
public void getBinary(int srcOffset, int length, byte[] dest, int destOffset) throws NullValueException- Specified by:
getBinaryin interfaceReadableValue- Throws:
NullValueException
-
writeObject
public abstract void writeObject(java.lang.Object value)
-
readObject
public abstract java.lang.Object readObject()
-
throwException
protected static void throwException()
-
-