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

How to use
FSEntryResource
in
ca.carleton.gcrc.couch.fsentry

Best Java code snippets using ca.carleton.gcrc.couch.fsentry.FSEntryResource (Showing top 7 results out of 315)

origin: ca.carleton.gcrc/nunaliit2-couch-client

/**
 * Creates an instance of FSEntryResource to represent an entry based on the resource
 * specified by the classLoader and resource name.
 * @param classLoader Class loader used to find the resource
 * @param resourceName Actual name of resource
 * @return An entry representing the specified resource.
 * @throws Exception Invalid request
 */
static public FSEntryResource create(ClassLoader classLoader, String resourceName) throws Exception {
  return create(null, classLoader, resourceName);
}

origin: ca.carleton.gcrc/nunaliit2-couch-client

@Override
public List<FSEntry> getChildren() {
  return getChildren(FSEntryNameFilter.all);
}
origin: ca.carleton.gcrc/nunaliit2-couch-client

FSEntryResource childEntry = new FSEntryResource(childFile.getName(), childFile);
result.add(childEntry);
    String childName = nameFromJarEntry(entry);
    childEntry = new FSEntryResource(childName, jarFile, entry);
  String childName = nameFromJarEntry(entry);
  childEntry = new FSEntryResource(childName, jarFile, entry);
  if( filter.accept(this, childEntry.getName()) ) {
    result.add(childEntry);
origin: ca.carleton.gcrc/nunaliit2-couch-client

File childFile = new File(file,name);
if( childFile.exists() ) {
  result = new FSEntryResource(childFile.getName(), childFile);
   || entryName.equals(expectedNameDir) ) {
    String childName = nameFromJarEntry(entry);
    result = new FSEntryResource(childName, jarFile, entry);
origin: ca.carleton.gcrc/nunaliit2-couch-client

          name = nameFromJarEntry(jarEntry);
        return new FSEntryResource(name, jarFile, jarEntry);
  name = file.getName();
return new FSEntryResource(name, file);
origin: ca.carleton.gcrc/nunaliit2-couch-client

/**
 * Create a virtual tree hierarchy with a resource supporting the leaf.
 * @param path Position of the file in the hierarchy, including its name
 * @param classLoader Class loader used to find the needed resource
 * @param resourceName Name of the actual resource to obtain using class loader
 * @return The FSEntry root for this hierarchy
 * @throws Exception Invalid parameter
 */
static public FSEntry getPositionedResource(String path, ClassLoader classLoader, String resourceName) throws Exception {
  List<String> pathFrags = FSEntrySupport.interpretPath(path);
  
  // Start at leaf and work our way back
  int index = pathFrags.size() - 1;
  FSEntry root = create(pathFrags.get(index), classLoader, resourceName);
  
  --index;
  while(index >= 0){
    FSEntryVirtualDirectory parent = new FSEntryVirtualDirectory(pathFrags.get(index));
    parent.addChildEntry(root);
    root = parent;
    --index;
  }
  
  return root;
}

origin: ca.carleton.gcrc/nunaliit2-couch-user

FSEntryResource resourceFile = FSEntryResource.create(UserDesignDocument.class.getClassLoader(), "userDesignDocument");
Document doc = DocumentFile.createDocument(resourceFile, resourceFile);
ca.carleton.gcrc.couch.fsentryFSEntryResource

Most used methods

  • create
    Creates an instance of FSEntryResource to represent an entry based on the resource specified by the
  • <init>
  • getChildren
  • getName
  • nameFromJarEntry

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 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