python-awips/dynamicserialize/adapters/ByteBufferAdapter.py

30 lines
548 B
Python
Raw Permalink Normal View History

2015-06-18 10:25:33 -06:00
##
##
#
# Adapter for java.nio.ByteBuffer
2016-03-16 16:32:17 -05:00
#
#
2015-06-18 10:25:33 -06:00
# SOFTWARE HISTORY
2016-03-16 16:32:17 -05:00
#
2015-06-18 10:25:33 -06:00
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 08/03/11 dgilling Initial Creation.
2016-03-16 16:32:17 -05:00
#
#
2015-06-18 10:25:33 -06:00
#
2016-03-16 16:32:17 -05:00
ClassAdapter = ['java.nio.ByteBuffer', 'java.nio.HeapByteBuffer']
2015-06-18 10:25:33 -06:00
2015-06-18 10:25:33 -06:00
def serialize(context, set):
raise NotImplementedError("Serialization of ByteBuffers is not supported.")
def deserialize(context):
byteBuf = context.readBinary()
return byteBuf