不透明内容究竟是什么意思? [英] What opaque content exactly mean?

查看:35
本文介绍了不透明内容究竟是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是对BasicFileAttributes接口的isRegularFile()方法的说明:

Here we have the description of isRegularFile() method of the BasicFileAttributes interface:

判断文件是否是内容不透明的普通文件.

Tells whether the file is a regular file with opaque content.

不可见的不透明内容"是什么意思?如果是这样,是否意味着具有透明内容的文件不是常规文件?提前致谢.

What do they mean by "opaque content", not visible? and if so, does it mean that a file with transparent content is not a regular file? Thanks in advance.

推荐答案

这意味着在幕后,API 不会努力查看文件内部以确定它是否真的是常规文件".一个文件可能看起来是一个普通文件,但实际上可能是加密的,是某个应用程序的虚拟文件系统,或者是 Java 不知道的任何数量的其他东西.Java 仅依赖于目录条目或底层操作系统提供的任何其他元数据.

It means that under the hood, the API makes no effort to look inside the file to determine whether it really is a "regular file". A file can appear to be a regular file but might actually be encrypted, a virtual file system for some application, or any number of other things that Java doesn't know about. Java only relies on the directory entry or whatever other metadata about it is provided by the underlying operating system.

这篇关于不透明内容究竟是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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