|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.formatter.FilePathFormatter
public class FilePathFormatter
Formatter implementation that format File
items
to their complete paths.
Field Summary | |
---|---|
private String |
nullValue
|
Constructor Summary | |
---|---|
FilePathFormatter()
Create a new formatter. |
|
FilePathFormatter(String nullValue)
Create a new formatter. |
Method Summary | |
---|---|
String |
format(File file)
Format a value by converting it to a string. |
File |
parseString(String value)
Parse a string and return a value of the correct type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String nullValue
Constructor Detail |
---|
public FilePathFormatter()
public FilePathFormatter(String nullValue)
nullValue
- The string to return if a null item is
passed to format(File)
Method Detail |
---|
public String format(File file)
Formatter
format
in interface Formatter<File>
file
- The value to format
public File parseString(String value)
Formatter
parseString
in interface Formatter<File>
value
- The string to parse
UnsupportedOperationException
- Always
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |