mk.fsgrep.util
Class PackageResource

java.lang.Object
  extended by mk.fsgrep.util.PackageResource
Direct Known Subclasses:
IconResource, TextResource

public abstract class PackageResource
extends java.lang.Object

Read a resource from the jar (classpath actually).

Author:
Murali Krishnan

Field Summary
static java.lang.String INCLUDE_PATH
           
static java.util.regex.Pattern RE_MULTI_SLASH
           
 
Constructor Summary
PackageResource(java.lang.String pUri)
           
 
Method Summary
protected  java.lang.Object getContent()
           
 java.lang.String getUri()
           
protected abstract  java.lang.Object readContent()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INCLUDE_PATH

public static final java.lang.String INCLUDE_PATH
See Also:
Constant Field Values

RE_MULTI_SLASH

public static final java.util.regex.Pattern RE_MULTI_SLASH
Constructor Detail

PackageResource

public PackageResource(java.lang.String pUri)
Method Detail

getUri

public java.lang.String getUri()

getContent

protected java.lang.Object getContent()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

readContent

protected abstract java.lang.Object readContent()


Copyright © 2009. All Rights Reserved.