Sweet Home 3D 4.1

com.eteks.sweethome3d.io
Class DefaultHomeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by 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

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
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.
 
Method Summary
 Home readHome()
          Reads home from a zipped stream.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

readHome

public Home readHome()
              throws IOException,
                     ClassNotFoundException
Reads home from a zipped stream.

Throws:
IOException
ClassNotFoundException

Sweet Home 3D 4.1

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License