简体   繁体   English

等价于Java中的NSData:subdataWithRange?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM