public ArchiveContainer(CProject cProject) { super( cProject, null, CCorePlugin.getResourceString("CoreModel.ArchiveContainer.Archives"), ICElement.C_VCONTAINER); // $NON-NLS-1$ }
/** * Creates a new <code>AR</code> object from the contents of the given file. * * @param filename The file to process. * @throws IOException The file is not a valid archive. */ public AR(String filename) throws IOException { this.filename = filename; file = new RandomAccessFile(filename, "r"); // $NON-NLS-1$ header = new ARHeader(); if (!header.isXcoffARHeader()) { file.close(); throw new IOException( CCorePlugin.getResourceString("Util.exception.invalidArchive")); // $NON-NLS-1$ } }