com.iparelan.util
Class FileMarshallingStrategy
java.lang.Object
com.iparelan.util.UtilObject
com.iparelan.util.FileMarshallingStrategy
- All Implemented Interfaces:
- MarshallingStrategy<File>
@Copyright(value="Copyright © 2008, Iparelan Solutions, LLC. All rights reserved.")
public final class FileMarshallingStrategy
- extends UtilObject
- implements MarshallingStrategy<File>
A strategy for converting a File to a String
(serializing).
- Version:
- July 2008
- Author:
- Greg Mattes
FileMarshallingStrategy
public FileMarshallingStrategy()
marshall
@Nullable
public String marshall(@Nullable
File file)
- Description copied from interface:
MarshallingStrategy
- Converts the specified value of type
T to a String.
- Specified by:
marshall in interface MarshallingStrategy<File>
- Parameters:
file - The value to be marshalled from a T to a String. May be null, in which case null is
produced.
- Returns:
- The marshalled value of
unmarshalled. null is
considered to be the marshalled value of null.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008 Iparelan Solutions, LLC. All rights reserved.