com.caucho.server.repository
Class GitStreamSource

java.lang.Object
  extended by com.caucho.vfs.StreamSource
      extended by com.caucho.server.repository.GitStreamSource

public class GitStreamSource
extends StreamSource

Stream source for Hessian serialization of large data


Constructor Summary
GitStreamSource(java.lang.String sha1, RepositorySpi repository)
          Create a new GitStreamSource for the named file
 
Method Summary
 java.io.InputStream getInputStream()
          Returns an input stream, freeing the results
 java.io.InputStream openInputStream()
          Returns an input stream, without freeing the results
 
Methods inherited from class com.caucho.vfs.StreamSource
close, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GitStreamSource

public GitStreamSource(java.lang.String sha1,
                       RepositorySpi repository)
Create a new GitStreamSource for the named file

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an input stream, freeing the results

Overrides:
getInputStream in class StreamSource
Throws:
java.io.IOException

openInputStream

public java.io.InputStream openInputStream()
                                    throws java.io.IOException
Returns an input stream, without freeing the results

Overrides:
openInputStream in class StreamSource
Throws:
java.io.IOException