/** * Determines if a pack file is blockable. * <p/> * Blockable files must be queued using {@link #queue()}. * * @param file the pack file * @return <tt>true</tt> if the file is blockable, otherwise <tt>false</tt> */ private boolean isBlockable(PackFile file) { return queue != null && (file.blockable() != Blockable.BLOCKABLE_NONE); }
file.blockable(), file.getAdditionals());
/** * Constructs an <tt>XPackFile</tt> from an {@link PackFile}. * * @param file the pack file * @throws IOException if an I/O error occurred */ public XPackFile(PackFile file) throws IOException { super(new File(file.sourcePath), file.getRelativeSourcePath(), file.getTargetPath(), file.osConstraints(), file.override(), file.overrideRenameTo(), file.blockable(), file.getAdditionals(), null); this.position = 0; this.setCondition(file.getCondition()); }