All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jsftoolkit.utils.serial.FileSerializer Maven / Gradle / Ivy

package com.jsftoolkit.utils.serial;

import java.io.File;

/**
 * 
 * @author noah
 * 
 * @see Serializer
 */
public class FileSerializer extends AbstractSerializer {

	public FileSerializer() {
		super(File.class);
	}

	/**
	 * @return file.getPath() the form will be dependant on what the
	 *         {@link File} was constructed with. See {@link File#getPath()}.
	 */
	public String serialize(File file) {
		return file.getPath();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy