/** * Private constructor as only one instance is built. */ private ArchiveManager() { addFactory(new DefaultArchiveFactory()); addFactory(new URLArchiveFactory()); }
/** * @return a string representation of the object. */ @Override public String toString() { return getName(); } }
/** * Default constructor. */ public AbsArchiveImpl() { this.archiveMetadata = new ArchiveMetadataImpl(); }
/** * @return the Metadata associated to this archive. */ @Override public IArchiveMetadata getMetadata() { if (!metadataAnalyzed) { try { initMetadata(); } catch (ArchiveException e) { logger.error("Cannot analyze metadata for archive " + jarFile, e); } metadataAnalyzed = true; } return super.getMetadata(); }
/** * @return the Metadata associated to this archive. */ @Override public IArchiveMetadata getMetadata() { if (!metadataAnalyzed) { try { initMetadata(); } catch (ArchiveException e) { logger.error("Cannot initialize metadata of file '" + directory + "'.", e); } metadataAnalyzed = true; } return super.getMetadata(); }
/** * Gets the unique instance of this class. * @return the unique instance. */ public static ArchiveManager getInstance() { if (archiveManager == null) { archiveManager = new ArchiveManager(); } return archiveManager; }
/** * Constructs a file archive wit the given file. * @param file the given file */ public FileArchiveImpl(final File file) { setFile(file); }
/** * @return a string representation of the object. */ @Override public String toString() { return getName(); }
/** * @return string representation */ @Override public String toString() { return getName(); }
/** * @return string representation */ @Override public String toString() { return getName(); }
/** * Private constructor as only one instance is built. */ private ArchiveManager() { addFactory(new DefaultArchiveFactory()); addFactory(new URLArchiveFactory()); }
/** * @return the Metadata associated to this archive. */ @Override public IArchiveMetadata getMetadata() { if (!metadataAnalyzed) { try { initMetadata(); } catch (ArchiveException e) { logger.error("Cannot analyze metadata for archive " + jarFile, e); } metadataAnalyzed = true; } return super.getMetadata(); }
/** * @return the Metadata associated to this archive. */ @Override public IArchiveMetadata getMetadata() { if (!metadataAnalyzed) { try { initMetadata(); } catch (ArchiveException e) { logger.error("Cannot initialize metadata of file '" + directory + "'.", e); } metadataAnalyzed = true; } return super.getMetadata(); }
/** * @return a string representation of the object. */ @Override public String toString() { return getName(); } }
/** * Default constructor. */ public AbsArchiveImpl() { this.archiveMetadata = new ArchiveMetadataImpl(); }
/** * Gets the unique instance of this class. * @return the unique instance. */ public static ArchiveManager getInstance() { if (archiveManager == null) { archiveManager = new ArchiveManager(); } return archiveManager; }
/** * Constructs a file archive wit the given file. * @param file the given file */ public FileArchiveImpl(final File file) { setFile(file); }
/** * @return a string representation of the object. */ @Override public String toString() { return getName(); }
/** * @return string representation */ @Override public String toString() { return getName(); }
/** * @return string representation */ @Override public String toString() { return getName(); }