我是斯卡拉语言的新手。
我有一个用于输入CoapExchange对象的方法:def handlePOST (request: CoapExchange) { .....如何在scala中将org.eclipse.californium.core.server.resources.CoapExchange对象转换为Byte[]!
def handlePOST (request: CoapExchange) { .....
org.eclipse.californium.core.server.resources.CoapExchange
Byte[]
发布于 2016-05-01 18:46:28
那么,让我们来看看来源
我们发现
/** * Gets the request payload as byte array. * * @return the request payload */ public byte[] getRequestPayload() { return exchange.getRequest().getPayload(); }
或者您可以使用这里的文件
https://stackoverflow.com/questions/36969003
相似问题