org.apache.jdo.impl.enhancer.util
Class ListResourceLocator

java.lang.Object
  extended by org.apache.jdo.impl.enhancer.util.Assertion
      extended by org.apache.jdo.impl.enhancer.util.Support
          extended by org.apache.jdo.impl.enhancer.util.ListResourceLocator
All Implemented Interfaces:
ResourceLocator

public class ListResourceLocator
extends Support
implements ResourceLocator

Searches resources among a set of files.


Field Summary
protected  java.io.PrintWriter out
           
protected  boolean verbose
           
 
Fields inherited from class org.apache.jdo.impl.enhancer.util.Support
timer
 
Constructor Summary
ListResourceLocator(java.io.PrintWriter out, boolean verbose, java.util.List fileNames)
          Creates an intsance.
 
Method Summary
 java.io.InputStream getInputStreamForResource(java.lang.String resourceName)
          Finds a resource with a given name.
 void printMessage(java.lang.String msg)
          Prints out a verbose message.
 
Methods inherited from class org.apache.jdo.impl.enhancer.util.Support
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N
 
Methods inherited from class org.apache.jdo.impl.enhancer.util.Assertion
affirm, affirm, affirm, affirm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected final java.io.PrintWriter out

verbose

protected final boolean verbose
Constructor Detail

ListResourceLocator

public ListResourceLocator(java.io.PrintWriter out,
                           boolean verbose,
                           java.util.List fileNames)
                    throws java.io.IOException
Creates an intsance.

Throws:
java.io.IOException
Method Detail

getInputStreamForResource

public java.io.InputStream getInputStreamForResource(java.lang.String resourceName)
Finds a resource with a given name.

Specified by:
getInputStreamForResource in interface ResourceLocator

printMessage

public void printMessage(java.lang.String msg)
Prints out a verbose message.

Parameters:
msg - the message


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.