public class HomeFileRecorder extends java.lang.Object implements HomeRecorder
DefaultHomeOutputStream and
DefaultHomeInputStream.HomeRecorder.Type| Constructor and Description |
|---|
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.
|
public HomeFileRecorder()
public HomeFileRecorder(int compressionLevel)
compressionLevel - 0 (uncompressed) to 9 (compressed).public HomeFileRecorder(int compressionLevel,
boolean includeOnlyTemporaryContent)
compressionLevel - 0-9includeOnlyTemporaryContent - if true, content instances of
TemporaryURLContent class referenced by the saved home
as well as the content previously saved with it will be written.
If false, all the content instances
referenced by the saved home will be written in the zip stream.public void writeHome(Home home, java.lang.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(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 file name exists.exists in interface HomeRecordername - the name of the resource to checkRecorderException

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