|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
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(StringBuffer buf)
Restores the file representation from an XML representation |
|
FileParameter.FileRepresentation(String filename,
String content)
Created a file representation 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 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)
filename
- the filenamecontent
- the contentspublic FileParameter.FileRepresentation(StringBuffer buf) throws NonParsableException
buf
- the XML representation
NonParsableException
- if the representation could not be parsed, an Exception is thrownMethod Detail |
---|
public FileParameter.FileRepresentation clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String getFilename()
public String getContent()
public StringBuffer toXML()
Storable
toXML
in interface Storable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |