/*
* JFolder, Copyright 2001-2006 Gary Steinmetz
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jfolder.workflow.lifecycle;
//base classes
import java.io.File;
//project specific classes
import org.jfolder.common.utils.misc.MiscHelper;
import org.jfolder.project.model.ProjectWebFile;
//other classes
/*public class GenericFileProjectWebFile implements ProjectWebFile {
private File file = null;
private byte content[] = null;
protected GenericFileProjectWebFile(File inFile) {
this.file = inFile;
//this.content = inContent;
}
protected void load() {
this.content = MiscHelper.readBinaryFile(this.file);
}
protected void store() {
MiscHelper.writeBinaryFile(this.file, this.content);
}
public String getName() {
return this.file.getName();
}
public String getFormattedDate() {
return MiscHelper.formatTime(this.file.lastModified());
}
public byte[] getContent() {
load();
return this.content;
}
public void setContent(byte inContent[]) {
this.content = inContent;
store();
}
}*/
|