| java.applet.Applet biz.hammurapi.web.FileApplet
FileApplet | public class FileApplet extends Applet (Code) | | Base class for file applets which store content to Argun file system, e.g. Diagram or Image editor applets.
author: Pavel Vlasov |
getData | protected InputStream getData()(Code) | | File data for editing (native format). If this method returns null then it means that a new file shall be created. This implementation returns data from applet stream with the name of the applet class. |
storeData | protected void storeData(InputStream data, InputStream viewData, String viewMimeType) throws IOException(Code) | | Stores file data.
This implementation stores only native data to applet stream with the name of the applet class.
Parameters: data - Native data which is used for editing. Parameters: viewData - File representation for viewing if this representation is different from native. E.g. for diagram editor or image editor view data shall be in one of image formats, e.g. GIF or PNG. Parameters: viewMimeType - View data MIME type, e.g. image/png. throws: IOException - |
|
|