예제 #1
0
 public ArchiveContainer(CProject cProject) {
   super(
       cProject,
       null,
       CCorePlugin.getResourceString("CoreModel.ArchiveContainer.Archives"),
       ICElement.C_VCONTAINER); // $NON-NLS-1$
 }
예제 #2
0
파일: AR.java 프로젝트: zhaog/cdt
 /**
  * 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$
   }
 }