资源适配器存档 (RAR) 是否与 Roshal 存档 (RAR) 相同?

Is Resource Adapter Archive (RAR) the same as Roshal ARchive (RAR)?

他们指的是同一件事吗?他们有关系吗?

根据 Oracle 的资源适配器存档 (RAR) 是:

Resource Adapter Archive (RAR): A RAR file holds a resource adapter. Defined by the J2EE Connector Architecture specifications, a resource adapter is a portable component that enables enterprise beans, Web components, and application clients to access resources and foreign enterprise systems. A resource adapter is often referred to as a connector. A RAR file name has the .rar extension

根据维基百科,Roshal ARchive (RAR) 是

RAR is a proprietary[3] archive file format that supports data compression, error recovery and file spanning. It was developed by a Russian software engineer, Eugene Roshal (the name RAR stands for Roshal ARchive) and the RAR software is licensed by win.rar GmbH.

这个问题背后的主要建议是我试图在不使用任何第三方库的情况下从我的 Java 应用程序中读取资源适配器存档 (RAR)。然而,每个人都在谈论 Roshal ARchive (RAR) 以及它如何成为专有的。

所以我对这一点感到困惑。 Oracle 是否真的使用了这种专有格式,或者只是扩展命名的相似性?

无论如何,我想知道是否有从我的 Java 应用程序中读取资源适配器存档 (RAR) 中包含的文本文件的示例。

Resource Adapter Archive (RAR) 是常规 jar 文件,它是具有某些预定义文件结构(如清单文件)的常规 zip 文件。它可以被任何 zip reader.

读取

Eugene Roshal 的 RAR 是专有的存档,与 zip 格式没有任何共同之处。它在 zip 上有许多(可讨论的)优点,并且主要在 Windows 上用作 WinRAR 可执行文件。此 WinRAR 作为归档程序也可以读取 zip 文件。这就是混乱的来源。 WinRAR 可以读取所有格式——用它来读取两种 RAR 文件,你就会成功。但是没有 zip 归档器会读取 WinRAR 格式。