Examples of AbstractFile


Examples of entagged.tageditor.tools.renaming.data.AbstractFile

   * @return <code>null</code>, if no conflict exists, else the first found
   *         file, which would be placed at the same location with the same
   *         name.
   */
  private AbstractFile getConflict(AbstractFile file) {
    AbstractFile result = null;
    if (file instanceof FileDescriptor) {
      FileDescriptor fd = (FileDescriptor) file;
      if (fd.getTargetDirectory() != null) {
        // DirectoryDescriptor returns them sorted.
        AbstractFile[] children = fd.getTargetDirectory()
View Full Code Here

Examples of org.sleuthkit.datamodel.AbstractFile

                     * be captured by file done event, anyways -jm */
                    break;
                case FILE_DONE:
                    /** getOldValue has fileID
                     * getNewValue has {@link Abstractfile} */
                    AbstractFile file = (AbstractFile) evt.getNewValue();
                    if (isListeningEnabled()) {
                        if (ImageAnalyzerModule.isSupportedAndNotKnown(file)) {
                            //this file should be included and we don't already know about it from hash sets (NSRL)
                            queueDBWorkerTask(new UpdateFileTask(file));
                        } else if (ImageAnalyzerModule.getAllSupportedExtensions().contains(file.getNameExtension())) {
                            //doing this check results in fewer tasks queued up, and faster completion of db update
                            //this file would have gotten scooped up in initial grab, but actually we don't need it
                            queueDBWorkerTask(new RemoveFileTask(file));
                        }
                    } else {   //TODO: keep track of what we missed for later
View Full Code Here

Examples of org.structr.web.entity.AbstractFile

      try {
        if (path.contains("/")) {

          String newParentPath = StringUtils.substringBeforeLast(path, "/");
          AbstractFile newParent = FileHelper.getFileByAbsolutePath(SecurityContext.getSuperUserInstance(), newParentPath);

          if (newParent != null && newParent instanceof Folder) {

            Folder newParentFolder = (Folder) newParent;
            structrFile.setProperty(AbstractFile.parent, newParentFolder);
View Full Code Here

Examples of xjavadoc.filesystem.AbstractFile

        while (xClass != null && xClass.isInner ()) {
            xClass = xClass.getContainingClass ();
        }
       
        if (xClass != null && xClass instanceof SourceClass) {
            AbstractFile af = ((SourceClass) xClass).getFile ();
            return new File (af.getPath ());
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.