|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.delicious.Util
public class Util
Various utility methods that glue the classes together.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static java.io.Reader |
getFileReader(java.lang.String fileName)
Deprecated. call getReader with a file:// url |
static java.io.Reader |
getReader(java.lang.String url)
Obtains a reader for the given URL. |
static java.io.Reader |
getResourceReader(java.lang.String path)
Gets a reader for a resource on the classpath. |
static void |
logStream(org.apache.log4j.Logger logger,
org.apache.log4j.Priority priority,
java.io.Reader reader)
Logs the message contained in the given reader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.io.Reader getReader(java.lang.String url) throws java.io.IOException
url
-
java.io.IOException
public static java.io.Reader getFileReader(java.lang.String fileName) throws java.io.FileNotFoundException
fileName
-
java.io.FileNotFoundException
public static java.io.Reader getResourceReader(java.lang.String path)
path
-
public static void logStream(org.apache.log4j.Logger logger, org.apache.log4j.Priority priority, java.io.Reader reader) throws java.io.IOException
logger
- priority
- reader
-
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |