mk.fsgrep.util
Class TextResource

java.lang.Object
  extended by mk.fsgrep.util.PackageResource
      extended by mk.fsgrep.util.TextResource

public class TextResource
extends PackageResource

Read a resource from the jar (classpath actually) and return it as a string.

Author:
Murali Krishnan

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

Constructor Detail

TextResource

protected TextResource(java.lang.String pUri)
Method Detail

get

public static java.lang.String get(java.lang.String pUri)

readContent

protected java.lang.Object readContent()
Specified by:
readContent in class PackageResource

toString

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


Copyright © 2009. All Rights Reserved.