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.Object
msg
-
Constructor Summary
Constructors Constructor Description PropertySupport()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getArrayLength()
void
getBinary(int srcOffset, int length, byte[] dest, int destOffset)
void
getBinary(int offset, int length, java.io.OutputStream out)
int
getBinaryLength()
java.lang.String
getString()
boolean
isNull()
Always returnsfalse
for non-nullable field.ReadableValue
nextReadableElement()
WritableValue
nextWritableElement()
Returns a transient (reused by interface implementation) WritableValue object for the next element of the array.java.io.InputStream
openBinary()
abstract java.lang.Object
readObject()
void
setArrayLength(int len)
Set length of the array.protected static void
throwException()
void
writeBinary(byte[] data, int offset, int length)
void
writeNull()
abstract void
writeObject(java.lang.Object value)
void
writeString(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:
writeString
in interfaceWritableValue
-
setArrayLength
public void setArrayLength(int len)
Description copied from interface:WritableValue
Set length of the array. It must be called prior to nextWritableElement- Specified by:
setArrayLength
in interfaceWritableValue
- Parameters:
len
- length of the array
-
nextWritableElement
public WritableValue nextWritableElement()
Description copied from interface:WritableValue
Returns 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:
nextWritableElement
in interfaceWritableValue
- Returns:
- reference to WritableValue object
-
writeBinary
public void writeBinary(byte[] data, int offset, int length)
- Specified by:
writeBinary
in interfaceWritableValue
-
writeNull
public void writeNull()
- Specified by:
writeNull
in interfaceWritableValue
-
openBinary
public java.io.InputStream openBinary() throws NullValueException
- Specified by:
openBinary
in interfaceReadableValue
- Throws:
NullValueException
-
isNull
public boolean isNull()
Description copied from interface:ReadableValue
Always returnsfalse
for non-nullable field.- Specified by:
isNull
in interfaceReadableValue
-
getString
public java.lang.String getString() throws NullValueException
- Specified by:
getString
in interfaceReadableValue
- Throws:
NullValueException
-
getArrayLength
public int getArrayLength() throws NullValueException
- Specified by:
getArrayLength
in interfaceReadableValue
- Throws:
NullValueException
-
nextReadableElement
public ReadableValue nextReadableElement() throws NullValueException
- Specified by:
nextReadableElement
in interfaceReadableValue
- Throws:
NullValueException
-
getBinaryLength
public int getBinaryLength() throws NullValueException
- Specified by:
getBinaryLength
in interfaceReadableValue
- Throws:
NullValueException
-
getBinary
public void getBinary(int offset, int length, java.io.OutputStream out) throws NullValueException
- Specified by:
getBinary
in interfaceReadableValue
- Throws:
NullValueException
-
getBinary
public void getBinary(int srcOffset, int length, byte[] dest, int destOffset) throws NullValueException
- Specified by:
getBinary
in interfaceReadableValue
- Throws:
NullValueException
-
writeObject
public abstract void writeObject(java.lang.Object value)
-
readObject
public abstract java.lang.Object readObject()
-
throwException
protected static void throwException()
-
-