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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(java.lang.String name)
Returns
true if the home name exists. |
java.lang.String[] |
getAvailableHomes()
Returns the available homes on server.
|
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 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
RecorderException

? Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License