com.notuvy.util
Class TextResource

java.lang.Object
  extended by com.notuvy.util.PackageResource
      extended by com.notuvy.util.TextResource

public class TextResource
extends PackageResource

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

Version:
$Id: TextResource.java,v 1.2 2006/06/21 04:09:21 murali Exp $
Author:
Murali Krishnan

Field Summary
 
Fields inherited from class com.notuvy.util.PackageResource
LOG, RE_MULTI_SLASH
 
Constructor Summary
protected TextResource(String pUri)
           
 
Method Summary
static String get(String pUri)
           
protected  Object readContent()
           
 String toString()
           
 
Methods inherited from class com.notuvy.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(String pUri)
Method Detail

get

public static String get(String pUri)

readContent

protected Object readContent()
Specified by:
readContent in class PackageResource

toString

public String toString()
Overrides:
toString in class PackageResource


Copyright © 2013. All Rights Reserved.