com.sun.enterprise.tools.classmodel
Class InhabitantsFilter
java.lang.Object
com.sun.enterprise.tools.classmodel.Constants
com.sun.enterprise.tools.classmodel.InhabitantsFilter
public class InhabitantsFilter
- extends Constants
Provides ability to filter an inhabitants file to only include what
is designated by a specified classpath.
- Author:
- Jeff Trent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InhabitantsFilter
protected InhabitantsFilter()
main
public static void main(String[] args)
throws Exception
- Requires
Constants.PARAM_INHABITANT_SOURCE_FILE
, Constants.PARAM_INHABITANT_TARGET_FILE
,
Constants.PARAM_INHABITANTS_SOURCE_FILES
, and Constants.PARAM_INHABITANTS_SORTED
to be passed.
- Parameters:
args
- not used
- Throws:
Exception
process
public static void process(InhabitantsDescriptor inDescriptor,
InhabitantsDescriptor outDescriptor,
CodeSourceFilter filter)
- Builds the outDescriptor based on filtered inDescriptor contents.
- Parameters:
inDescriptor
- the source input descriptoroutDescriptor
- the destination descriptorfilter
- the filter
writeInhabitantsFile
public static void writeInhabitantsFile(File targetInhabitantFile,
InhabitantsDescriptor outDescriptor,
boolean sorted)
throws FileNotFoundException,
IOException
- Writes the inhabitants file to disk.
- Parameters:
targetInhabitantFile
- outDescriptor
- sorted
-
- Throws:
FileNotFoundException
IOException
Copyright © 2013 Oracle Corporation. All Rights Reserved.