org.databene.commons.file
Class FilenameFormat

java.lang.Object
  extended by java.text.Format
      extended by org.databene.commons.file.FilenameFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class FilenameFormat
extends java.text.Format

Formats file names as local names or absolute path.

Created: 13.05.2007 07:41:51

Author:
Volker Bergmann
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Constructor Summary
FilenameFormat()
           
FilenameFormat(boolean fullPathUsed)
           
 
Method Summary
 java.lang.StringBuffer format(java.lang.Object fileObject, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
           
 boolean isFullPathUsed()
           
 java.lang.Object parseObject(java.lang.String filename, java.text.ParsePosition pos)
           
 void setFullPathUsed(boolean fullPathUsed)
           
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilenameFormat

public FilenameFormat()

FilenameFormat

public FilenameFormat(boolean fullPathUsed)
Method Detail

isFullPathUsed

public boolean isFullPathUsed()

setFullPathUsed

public void setFullPathUsed(boolean fullPathUsed)

format

public java.lang.StringBuffer format(java.lang.Object fileObject,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Specified by:
format in class java.text.Format

parseObject

public java.lang.Object parseObject(java.lang.String filename,
                                    java.text.ParsePosition pos)
Specified by:
parseObject in class java.text.Format


Copyright © 2010. All Rights Reserved.