org.objectweb.dsrg.sofa.repository.core
Class SofaInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.objectweb.dsrg.sofa.repository.core.SofaInputStream
All Implemented Interfaces:
java.io.Closeable

public class SofaInputStream
extends java.io.InputStream

SOFA specific InputStream, which downloads data from SofaServlet.


Constructor Summary
SofaInputStream(RepositoryConfiguration rc, org.eclipse.emf.common.util.URI uri)
          Standard constructor.
 
Method Summary
 void close()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SofaInputStream

public SofaInputStream(RepositoryConfiguration rc,
                       org.eclipse.emf.common.util.URI uri)
                throws java.io.IOException
Standard constructor.

Parameters:
rc - Connection configuration
uri - SofaURI of requested EObject
Throws:
java.io.IOException
See Also:
ConversionHelper
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException