|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.util.io.lib.DirJavaExplorer
DirJavaExplorer defines methods to create object able to manage a list of paths and furnish input and output stream on files
Constructor Summary | |
DirJavaExplorer()
Builds a new DirJavaExplorer. |
Method Summary | |
void |
addPath(java.util.Collection path)
Creates the paths with the given path. |
void |
addPath(java.lang.String cpath)
Adds a classpath and its path separator to the current explorer. |
java.lang.String |
getClassPath()
|
java.io.InputStream |
getInputStream(java.lang.String file)
Gets an input stream from a given file. |
Logger |
getLogger()
Returns a logger to an component that wants to log things. |
LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.io.OutputStream |
getOutputStream(java.lang.String file)
Gets an output stream from a given file. |
void |
setLogger(Logger logger)
Assigns a logger to an component that wants to log things. |
void |
setLoggerFactory(LoggerFactory loggerfactory)
Assigns a logger factory that allows the creation of new loggers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirJavaExplorer()
Method Detail |
public void setLogger(Logger logger)
Loggable
setLogger
in interface Loggable
logger
- the logger objectpublic Logger getLogger()
getLogger
in interface Loggable
public LoggerFactory getLoggerFactory()
getLoggerFactory
in interface Loggable
public void setLoggerFactory(LoggerFactory loggerfactory)
setLoggerFactory
in interface Loggable
loggerfactory
- the LoggerFactory object to obtain new loggerspublic void addPath(java.lang.String cpath)
addPath
in interface PathExplorer
cpath
- the classpath which contains a list of pathspublic void addPath(java.util.Collection path)
addPath
in interface PathExplorer
path
- the vector of paths (which are String)public java.io.InputStream getInputStream(java.lang.String file)
getInputStream
in interface PathExplorer
file
- the string representation of the name of the file
public java.io.OutputStream getOutputStream(java.lang.String file)
getOutputStream
in interface PathExplorer
file
- the string representation of the name of the file
public java.lang.String getClassPath()
getClassPath
in interface PathExplorer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |