[英]Equivalent of NSData :subdataWithRange in Java?
What is the Java equivalent of NSData
:subdataWithRange
? Java等效于
NSData
:subdataWithRange
什么? I am working on decrypting certain responses I send from a server I created it works fine in the iOS app written in Objective-C
but wondering about its equivalent in Java
我正在解密从我创建的服务器发送的某些响应,在使用
Objective-C
编写的iOS应用中可以正常工作,但是想知道它在Java
等效性
I believe the answer is to use ByteArrayOutputStream
and convert things to a byte[]
. 我相信答案是使用
ByteArrayOutputStream
并将事物转换为byte[]
。 ByteBuffer
is another alternative. ByteBuffer
是另一种选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.