public class DefaultHomeInputStream
extends java.io.FilterInputStream
InputStream
filter that reads a home from a stream
at .sh3d file format.DefaultHomeOutputStream
Constructor and Description |
---|
DefaultHomeInputStream(java.io.InputStream in)
Creates a home input stream filter able to read a home and its content
from
in . |
DefaultHomeInputStream(java.io.InputStream in,
ContentRecording contentRecording)
Creates a home input stream filter able to read a home and its content
from
in . |
DefaultHomeInputStream(java.io.InputStream in,
ContentRecording contentRecording,
UserPreferences preferences,
boolean preferPreferencesContent)
Creates a home input stream filter able to read a home and its content
from
in . |
public DefaultHomeInputStream(java.io.InputStream in) throws java.io.IOException
in
. The dependencies of the read home included in the stream
will be checked.java.io.IOException
public DefaultHomeInputStream(java.io.InputStream in, ContentRecording contentRecording) throws java.io.IOException
in
.java.io.IOException
public DefaultHomeInputStream(java.io.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 java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
© Copyrights 2006-2014 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License