Tabnine Logo
DecoratedFileObject
Code IndexAdd Tabnine to your IDE (free)

How to use
DecoratedFileObject
in
org.apache.commons.vfs2.impl

Best Java code snippets using org.apache.commons.vfs2.impl.DecoratedFileObject (Showing top 20 results out of 315)

origin: pentaho/pentaho-platform

 @Override
 public FileContent getContent() throws FileSystemException {
  return new DecoratedFileContent( super.getContent() ) {
   @Override public InputStream getInputStream() throws FileSystemException {
    return annotator.getInputStream( super.getInputStream(), annotationsFile.getContent().getInputStream() );
   }
  };
 }
}
origin: org.jetbrains.intellij.deps/commons-vfs2

@Override
public void close() throws FileSystemException
{
  synchronized (this)
  {
    super.close();
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public void copyFrom(final FileObject srcFile, final FileSelector selector) throws FileSystemException {
  synchronized (this) {
    super.copyFrom(srcFile, selector);
  }
}
origin: apache/commons-vfs

  /**
   * Check if the given FileObject is instance of given class argument.
   *
   * @param fileObject The FileObject.
   * @param wantedClass The Class to check.
   * @return true if fileObject is an instance of the specified Class.
   * @throws FileSystemException if an error occurs.
   */
  public static boolean isInstanceOf(final FileObject fileObject, final Class<?> wantedClass)
      throws FileSystemException {
    Object searchObject = fileObject;
    while (searchObject instanceof DecoratedFileObject) {
      if (wantedClass.isInstance(searchObject)) {
        return true;
      }

      searchObject = ((DecoratedFileObject) searchObject).getDecoratedFileObject();
    }

    if (wantedClass.isInstance(searchObject)) {
      return true;
    }

    return false;
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public void findFiles(final FileSelector selector, final boolean depthwise, final List<FileObject> selected)
    throws FileSystemException {
  synchronized (this) {
    super.findFiles(selector, depthwise, selected);
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public int delete(final FileSelector selector) throws FileSystemException {
  synchronized (this) {
    return super.delete(selector);
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public FileObject getChild(final String name) throws FileSystemException {
  synchronized (this) {
    return super.getChild(name);
  }
}
origin: com.github.abashev/commons-vfs2

@Override
public boolean exists() throws FileSystemException {
  synchronized (this) {
    return super.exists();
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public void createFolder() throws FileSystemException {
  synchronized (this) {
    super.createFolder();
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public void createFile() throws FileSystemException {
  synchronized (this) {
    super.createFile();
  }
}
origin: org.apache.commons/commons-vfs2

  /**
   * Check if the given FileObject is instance of given class argument.
   *
   * @param fileObject The FileObject.
   * @param wantedClass The Class to check.
   * @return true if fileObject is an instance of the specified Class.
   * @throws FileSystemException if an error occurs.
   */
  public static boolean isInstanceOf(final FileObject fileObject, final Class<?> wantedClass)
      throws FileSystemException {
    Object searchObject = fileObject;
    while (searchObject instanceof DecoratedFileObject) {
      if (wantedClass.isInstance(searchObject)) {
        return true;
      }

      searchObject = ((DecoratedFileObject) searchObject).getDecoratedFileObject();
    }

    if (wantedClass.isInstance(searchObject)) {
      return true;
    }

    return false;
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public FileObject[] findFiles(final FileSelector selector) throws FileSystemException {
  synchronized (this) {
    return super.findFiles(selector);
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public boolean delete() throws FileSystemException {
  synchronized (this) {
    return super.delete();
  }
}
origin: apache/commons-vfs

@Override
public FileObject getChild(final String name) throws FileSystemException {
  synchronized (this) {
    return super.getChild(name);
  }
}
origin: org.jetbrains.intellij.deps/commons-vfs2

@Override
public boolean exists() throws FileSystemException
{
  synchronized (this)
  {
    return super.exists();
  }
}
origin: com.github.abashev/commons-vfs2

@Override
public void createFolder() throws FileSystemException {
  synchronized (this) {
    super.createFolder();
  }
}
origin: com.github.abashev/commons-vfs2

@Override
public void createFile() throws FileSystemException {
  synchronized (this) {
    super.createFile();
  }
}
origin: org.apache.commons/commons-vfs2

@Override
public FileContent getContent() throws FileSystemException {
  synchronized (this) {
    return super.getContent();
  }
}
origin: com.github.abashev/commons-vfs2

  /**
   * Check if the given FileObject is instance of given class argument.
   *
   * @param fileObject The FileObject.
   * @param wantedClass The Class to check.
   * @return true if fileObject is an instance of the specified Class.
   * @throws FileSystemException if an error occurs.
   */
  public static boolean isInstanceOf(final FileObject fileObject, final Class<?> wantedClass)
      throws FileSystemException {
    Object searchObject = fileObject;
    while (searchObject instanceof DecoratedFileObject) {
      if (wantedClass.isInstance(searchObject)) {
        return true;
      }

      searchObject = ((DecoratedFileObject) searchObject).getDecoratedFileObject();
    }

    if (wantedClass.isInstance(searchObject)) {
      return true;
    }

    return false;
  }
}
origin: com.github.abashev/commons-vfs2

@Override
public FileObject[] findFiles(final FileSelector selector) throws FileSystemException {
  synchronized (this) {
    return super.findFiles(selector);
  }
}
org.apache.commons.vfs2.implDecoratedFileObject

Javadoc

Base class to build a fileObject decoration.

Most used methods

  • getContent
  • getDecoratedFileObject
  • close
  • copyFrom
  • createFile
  • createFolder
  • delete
  • exists
  • findFiles
  • getChild
  • getChildren
  • getType
  • getChildren,
  • getType,
  • isExecutable,
  • isHidden,
  • isReadable,
  • isWriteable,
  • moveTo,
  • resolveFile,
  • setExecutable,
  • setReadable

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now