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
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • 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