Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


oracle.jdeveloper.deploy
Class ArchiveEntryFactory

java.lang.Object
  extended by oracle.jdeveloper.deploy.ArchiveEntryFactory


public class ArchiveEntryFactory
extends java.lang.Object

Constructor Summary
ArchiveEntryFactory()
           
ArchiveEntryFactory(java.util.List packets)
           

 

Method Summary
protected  void add(ArchiveEntry packet)
           
 java.util.List getPackets()
           
protected  ArchiveEntry newArchiveEntry(java.lang.String name, java.net.URL url)
           
 void recurseInDirectories(java.net.URL[] dirs)
           
 void recurseInDirectory(java.lang.String prefix, java.net.URL dir)
          This is the recursive part of the algorithm that builds up the List of CdaPacket objects representing an entire directory tree.
 void recurseInDirectory(java.net.URL dir)
          This method takes an URL argument that represents a directory and recurses into it, building up a List of ArchiveEntryFactory objects that provide entry names that are relative to the directory associated with fully qualified URLs for the resources.
 void recurseInPath(URLPath path)
           
protected  boolean shouldAdd(java.net.URL url)
           
protected  boolean shouldRecurseInto(java.net.URL url)
           
static ArchiveEntry[] toArray(java.util.Collection archiveEntries)
          Converts the given Collection of ArchiveEntry objects into an array of ArchiveEntry objects.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ArchiveEntryFactory

public ArchiveEntryFactory()

ArchiveEntryFactory

public ArchiveEntryFactory(java.util.List packets)

Method Detail

getPackets

public java.util.List getPackets()

recurseInDirectory

public void recurseInDirectory(java.net.URL dir)
This method takes an URL argument that represents a directory and recurses into it, building up a List of ArchiveEntryFactory objects that provide entry names that are relative to the directory associated with fully qualified URLs for the resources. This method is especially useful for copying directory trees into a jar file.
Parameters:
dir - The directory where the recursion begins. All entry names in the returned List will be relative to this directory.

recurseInPath

public void recurseInPath(URLPath path)

recurseInDirectories

public void recurseInDirectories(java.net.URL[] dirs)

recurseInDirectory

public void recurseInDirectory(java.lang.String prefix,
                               java.net.URL dir)
This is the recursive part of the algorithm that builds up the List of CdaPacket objects representing an entire directory tree.
Parameters:
prefix - entry name prefix; must end with "/" to produce correct results.
dir - current directory being recursed.

newArchiveEntry

protected ArchiveEntry newArchiveEntry(java.lang.String name,
                                       java.net.URL url)

toArray

public static ArchiveEntry[] toArray(java.util.Collection archiveEntries)
Converts the given Collection of ArchiveEntry objects into an array of ArchiveEntry objects. Any nulls or objects in archiveEntries that cannot be cast to ArchiveEntry are skipped and will not be in the returned array.

shouldRecurseInto

protected boolean shouldRecurseInto(java.net.URL url)

shouldAdd

protected boolean shouldAdd(java.net.URL url)

add

protected void add(ArchiveEntry packet)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.