|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sadun.util.PrefixPrintWriter.DirectoryPrefixProvider
A prefix provider to show the current directory as a prefix.
Optionally, a certain directory can be indicated to be substituted with a "tilde" (~) charachter in the prefix. The substitution occurs only when the current directory is the given one ora a subdirectory of the given one (i.e., the current directory path starts or equals the the given one's path).
Constructor Summary | |
PrefixPrintWriter.DirectoryPrefixProvider()
Create a prefix provider which shows the absolute path name of the current directory |
|
PrefixPrintWriter.DirectoryPrefixProvider(java.io.File tildeValue)
Create a prefix provider which shows the absolute path name of the current directory, substituting the given directory with a 'tilde' (~) charachter. |
Method Summary | |
java.lang.String |
getPrefix()
Return a string to prefix to the stream lines. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrefixPrintWriter.DirectoryPrefixProvider()
public PrefixPrintWriter.DirectoryPrefixProvider(java.io.File tildeValue)
tildeValue
- the directory that must be substituted with a tilde
java.lang.RuntimeException
- if the given File is not a directoryMethod Detail |
public java.lang.String getPrefix()
getPrefix
in interface PrefixProvider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |