com.eteks.sweethome3d.io
Class DefaultHomeInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.eteks.sweethome3d.io.DefaultHomeInputStream
- All Implemented Interfaces:
- Closeable
public class DefaultHomeInputStream
- extends FilterInputStream
An InputStream
filter that reads a home from a stream
at .sh3d file format.
- See Also:
DefaultHomeOutputStream
Method Summary |
Home |
readHome()
Reads home from a zipped stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHomeInputStream
public DefaultHomeInputStream(InputStream in)
throws IOException
- Creates a home input stream filter able to read a home and its content
from
in
.
- Throws:
IOException
DefaultHomeInputStream
public DefaultHomeInputStream(InputStream in,
ContentRecording contentRecording)
throws IOException
- Creates a home input stream filter able to read a home and its content
from
in
.
- Throws:
IOException
readHome
public Home readHome()
throws IOException,
ClassNotFoundException
- Reads home from a zipped stream.
- Throws:
IOException
ClassNotFoundException