|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 |
getExtension()
Returns the extension of this FileParameter . |
String |
getFilename()
Returns the filename. |
void |
setExtension(String ext)
Sets the extension of this FileParameter . |
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 parsedMethod Detail |
---|
public FileParameter.FileRepresentation clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String getFilename()
public String getContent()
public void setExtension(String ext)
FileParameter
.
ext
- the extensionpublic String getExtension()
FileParameter
.
public StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.
toXML
in interface Storable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |