|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.sweethome3d.io.HomeFileRecorder
public class HomeFileRecorder
Recorder that stores homes in files with DefaultHomeOutputStream and
DefaultHomeInputStream.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.eteks.sweethome3d.model.HomeRecorder |
|---|
HomeRecorder.Type |
| Constructor Summary | |
|---|---|
HomeFileRecorder()
Creates a home recorder able to write and read homes in uncompressed files. |
|
HomeFileRecorder(int compressionLevel)
Creates a home recorder able to write and read homes in files compressed at a level from 0 to 9. |
|
HomeFileRecorder(int compressionLevel,
boolean includeOnlyTemporaryContent)
Creates a home recorder able to write and read homes in files compressed at a level from 0 to 9. |
|
| Method Summary | |
|---|---|
boolean |
exists(String name)
Returns true if the file name exists. |
Home |
readHome(String name)
Returns a home instance read from its file name. |
void |
writeHome(Home home,
String name)
Writes home data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HomeFileRecorder()
public HomeFileRecorder(int compressionLevel)
compressionLevel - 0 (uncompressed) to 9 (compressed).
public HomeFileRecorder(int compressionLevel,
boolean includeOnlyTemporaryContent)
compressionLevel - 0-9includeOnlyTemporaryContent - if true, only content instances of
TemporaryURLContent class referenced by the saved home
will be written. If false, all the content instances
referenced by the saved home will be written in the zip stream.| Method Detail |
|---|
public void writeHome(Home home,
String name)
throws RecorderException
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(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(String name)
throws RecorderException
true if the file name exists.
exists in interface HomeRecordername - the name of the resource to check
RecorderException
|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |