有没有办法读取TypedStream格式的文件 [英] Is there a way to read in files in TypedStream format

查看:209
本文介绍了有没有办法读取TypedStream格式的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个以下格式的文件:

  NeXT / Apple类型流数据,小端,版本4,系统1000 

在十六进制编辑器中查看它,它显然由NS >对象( NSArray NSValue 等)。它也似乎有一个嵌入的plist!



我猜想有一个直观的方法来读取这个文件,并以更可读的方式输出(类似于 repr() print_r()



我假设我需要使用Objective-C来执行此操作?

解决方案

如果是二进制plist,应该很容易请阅读Xcode / Plist Editor, plutil 或您自己的Objective-C代码。否则,根据文件,可能会更具挑战性。该文件存储一个Objective-C对象的序列化表示。因此,只有创建它的软件才能读取。


I have a file in the following format:

NeXT/Apple typedstream data, little endian, version 4, system 1000

Looking at it in a hex editor, it's clearly made up of NSsomething objects (NSArray, NSValue, etc). It also appears to have an embedded plist!

I'm guessing there's a straightforward way to read this file and output it in some more readable fashion (similar to the output of repr() or print_r()).

I assume I'll need to do this using Objective-C?

解决方案

If it's a binary plist, it should be easy to read it with Xcode / Plist Editor, plutil, or your own Objective-C code. Otherwise, depending on the file, it could be more challenging. The file stores a serialized representation of Objective-C objects. As such, it's only intended to be readable by the software that created it.

这篇关于有没有办法读取TypedStream格式的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆