|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.parameters.FileParameter.FileRepresentation
public static class FileParameter.FileRepresentation
Class that represents a file.
| Constructor Summary | |
|---|---|
FileParameter.FileRepresentation(String filename)
Creates a new FileParameter.FileRepresentation from a filename. |
|
FileParameter.FileRepresentation(StringBuffer buf)
The standard constructor for the interface Storable
. |
|
FileParameter.FileRepresentation(String filename,
String content)
Creates a FileParameter.FileRepresentation out of the filename and the
file's contents. |
|
| Method Summary | |
|---|---|
FileParameter.FileRepresentation |
clone()
|
String |
getContent()
Returns the content of the file. |
String |
getFilename()
Returns the filename. |
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileParameter.FileRepresentation(String filename,
String content)
FileParameter.FileRepresentation out of the filename and the
file's contents.
filename - the name of the filecontent - the contents of the filepublic FileParameter.FileRepresentation(String filename)
FileParameter.FileRepresentation from a filename.
filename - the filenamepublic FileParameter.FileRepresentation(StringBuffer buf)
throws NonParsableException
Storable
. Restores the FileParameter.FileRepresentation from an XML representation.
buf - the XML representation as StringBuffer
NonParsableException - if the StringBuffer could not be parsed| Method Detail |
|---|
public FileParameter.FileRepresentation clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String getFilename()
public String getContent()
public StringBuffer toXML()
StorableStringBuffer of an
instance of the implementing class.
toXML in interface Storable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||