public class HomeAppletRecorder extends java.lang.Object implements HomeRecorder
HomeRecorder.Type| Constructor and Description |
|---|
HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL)
Creates a recorder that will use the URLs in parameter to write, read and list homes.
|
HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL,
boolean includeTemporaryContent)
Creates a recorder that will use the URLs in parameter to write, read and list homes.
|
HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL,
ContentRecording contentRecording)
Creates a recorder that will use the URLs in parameter to write, read and list homes.
|
HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL,
java.lang.String deleteHomeURL,
ContentRecording contentRecording)
Creates a recorder that will use the URLs in parameter to write, read, list and delete homes.
|
HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL,
java.lang.String deleteHomeURL,
ContentRecording contentRecording,
HomeXMLHandler xmlHandler,
HomeXMLExporter xmlExporter)
Creates a recorder that will use the URLs in parameter to write, read, list and delete homes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteHome(java.lang.String name)
Deletes on server a home from its file
name. |
boolean |
exists(java.lang.String name)
Returns
true if the home name exists. |
java.lang.String[] |
getAvailableHomes()
Returns the available homes on server.
|
long |
getHomeLength(Home home)
Returns the length of the home data that will be saved by this recorder.
|
boolean |
isHomeDeletionAvailable()
Returns
true if this recorder provides a service able to delete homes. |
Home |
readHome(java.lang.String name)
Returns a home instance read from its file
name. |
void |
writeHome(Home home,
java.lang.String name)
Posts home data to the server URL returned by
getHomeSaveURL. |
public HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL)
SweetHome3DAppletpublic HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL,
boolean includeTemporaryContent)
SweetHome3DAppletpublic HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL,
ContentRecording contentRecording)
SweetHome3DAppletpublic HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL,
java.lang.String deleteHomeURL,
ContentRecording contentRecording)
SweetHome3DAppletpublic HomeAppletRecorder(java.lang.String writeHomeURL,
java.lang.String readHomeURL,
java.lang.String listHomesURL,
java.lang.String deleteHomeURL,
ContentRecording contentRecording,
HomeXMLHandler xmlHandler,
HomeXMLExporter xmlExporter)
xmlHandler and xmlExporter are not null, this recorder
will write a Home.xml entry rather than a Home Java serialized entry in saveed files.SweetHome3DAppletpublic void writeHome(Home home, java.lang.String name) throws RecorderException
getHomeSaveURL.writeHome in interface HomeRecorderhome - the home to write.name - the name of the resource in which the home will be written.RecorderException - if a problem occurred while writing home.public Home readHome(java.lang.String name) throws RecorderException
name.readHome in interface HomeRecordername - the name of the resource from which the home will be read.RecorderException - if a problem occurred while reading home,
or if file name doesn't exist.public boolean exists(java.lang.String name)
throws RecorderException
true if the home name exists.exists in interface HomeRecordername - the name of the resource to checkRecorderExceptionpublic java.lang.String[] getAvailableHomes()
throws RecorderException
RecorderExceptionpublic void deleteHome(java.lang.String name)
throws RecorderException
name.RecorderException - if a problem occurred while deleting home,
or if file name doesn't exist.public boolean isHomeDeletionAvailable()
true if this recorder provides a service able to delete homes.public long getHomeLength(Home home) throws RecorderException
RecorderException

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License