public class DefaultHomeOutputStream
extends java.io.FilterOutputStream
OutputStream
filter that writes a home in a stream
at .sh3d file format.DefaultHomeInputStream
Constructor and Description |
---|
DefaultHomeOutputStream(java.io.OutputStream out)
Creates a stream that will save a home and all the contents it references
in an uncompressed zip stream.
|
DefaultHomeOutputStream(java.io.OutputStream out,
int compressionLevel,
boolean includeTemporaryContent)
Creates a stream that will save a home in a zip stream.
|
DefaultHomeOutputStream(java.io.OutputStream out,
int compressionLevel,
ContentRecording contentRecording)
Creates a stream that will save a home in a zip stream.
|
DefaultHomeOutputStream(java.io.OutputStream out,
int compressionLevel,
ContentRecording contentRecording,
boolean serializedHome,
HomeXMLExporter homeXmlExporter)
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(java.io.OutputStream out) throws java.io.IOException
Home
.java.io.IOException
public DefaultHomeOutputStream(java.io.OutputStream out, int compressionLevel, boolean includeTemporaryContent) throws java.io.IOException
Home
.compressionLevel
- 0-9includeTemporaryContent
- if true
, content instances of
TemporaryURLContent
and SimpleURLContent
classes
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.java.io.IOException
public DefaultHomeOutputStream(java.io.OutputStream out, int compressionLevel, ContentRecording contentRecording) throws java.io.IOException
Home
.compressionLevel
- 0-9contentRecording
- how content should be recorded with home.java.io.IOException
public DefaultHomeOutputStream(java.io.OutputStream out, int compressionLevel, ContentRecording contentRecording, boolean serializedHome, HomeXMLExporter homeXmlExporter) throws java.io.IOException
Home
if serializedHome
is true
,
and saved in Home.xml
entry at XML format if homeXmlExporter
is not null
.compressionLevel
- 0-9contentRecording
- specifies how content should be recorded with homeserializedHome
- if true
, zip stream will include a Home
entry containing the serialized homehomeXmlExporter
- if not null
, sets how a home will be saved
in an additional Home.xml
entryjava.io.IOException
public void writeHome(Home home) throws java.io.IOException
Content
objects
it points to.java.io.IOException
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License