mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-24 14:57:57 -05:00
29 lines
548 B
Python
29 lines
548 B
Python
##
|
|
##
|
|
|
|
|
|
#
|
|
# Adapter for java.nio.ByteBuffer
|
|
#
|
|
#
|
|
# SOFTWARE HISTORY
|
|
#
|
|
# Date Ticket# Engineer Description
|
|
# ------------ ---------- ----------- --------------------------
|
|
# 08/03/11 dgilling Initial Creation.
|
|
#
|
|
#
|
|
#
|
|
|
|
ClassAdapter = ['java.nio.ByteBuffer', 'java.nio.HeapByteBuffer']
|
|
|
|
|
|
def serialize(context, set):
|
|
raise NotImplementedError("Serialization of ByteBuffers is not supported.")
|
|
|
|
def deserialize(context):
|
|
byteBuf = context.readBinary()
|
|
return byteBuf
|
|
|
|
|
|
|