public class DefaultHomeOutputStream extends FilterOutputStream
OutputStream filter that writes a home in a stream
at .sh3d file format.DefaultHomeInputStreamout| Constructor and Description |
|---|
DefaultHomeOutputStream(OutputStream out)
Creates a stream that will serialize a home and all the contents it references
in an uncompressed zip stream.
|
DefaultHomeOutputStream(OutputStream out,
int compressionLevel,
boolean includeTemporaryContent)
Creates a stream that will serialize a home in a zip stream.
|
DefaultHomeOutputStream(OutputStream out,
int compressionLevel,
ContentRecording contentRecording)
Creates a stream that will serialize a home in a zip stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeHome(Home home)
Writes home in a zipped stream followed by
Content objects
it points to. |
public DefaultHomeOutputStream(OutputStream out) throws IOException
IOExceptionpublic DefaultHomeOutputStream(OutputStream out, int compressionLevel, boolean includeTemporaryContent) throws IOException
compressionLevel - 0-9includeTemporaryContent - 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.IOExceptionpublic DefaultHomeOutputStream(OutputStream out, int compressionLevel, ContentRecording contentRecording) throws IOException
compressionLevel - 0-9contentRecording - how content should be recorded with home.IOExceptionpublic void writeHome(Home home) throws IOException
Content objects
it points to.IOException

© Copyrights 2006-2015 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License