public class DefaultHomeInputStream extends FilterInputStream
InputStream
filter that reads a home from a stream
at .sh3d file format.DefaultHomeOutputStream
in
Constructor and Description |
---|
DefaultHomeInputStream(InputStream in)
Creates a home input stream filter able to read a home and its content
from
in . |
DefaultHomeInputStream(InputStream in,
ContentRecording contentRecording)
Creates a home input stream filter able to read a home and its content
from
in . |
DefaultHomeInputStream(InputStream in,
ContentRecording contentRecording,
UserPreferences preferences,
boolean preferPreferencesContent)
Creates a home input stream filter able to read a home and its content
from
in . |
Modifier and Type | Method and Description |
---|---|
Home |
readHome()
Reads home from a zipped stream.
|
available, close, mark, markSupported, read, read, read, reset, skip
public DefaultHomeInputStream(InputStream in) throws IOException
in
. The dependencies of the read home included in the stream
will be checked.IOException
public DefaultHomeInputStream(InputStream in, ContentRecording contentRecording) throws IOException
in
.IOException
public DefaultHomeInputStream(InputStream in, ContentRecording contentRecording, UserPreferences preferences, boolean preferPreferencesContent)
in
. If preferences
isn't null
and preferPreferencesContent
is true
,
the furniture and textures contents it references will replace the one of
the read home when they are equal. If preferPreferencesContent
is false
, preferences content will be used only
to replace damaged equal content that might be found in read home files.public Home readHome() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
© Copyrights 2006-2015 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License