org.eclipse.jgit.lib
Class ObjectStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.eclipse.jgit.lib.ObjectStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
ObjectStream.Filter, ObjectStream.SmallStream

public abstract class ObjectStream
extends InputStream

Stream of data coming from an object loaded by ObjectLoader.


Nested Class Summary
static class ObjectStream.Filter
          Simple filter stream around another stream.
static class ObjectStream.SmallStream
          Simple stream around the cached byte array created by a loader.
 
Constructor Summary
ObjectStream()
           
 
Method Summary
abstract  long getSize()
           
abstract  int getType()
           
 
Methods inherited from class java.io.InputStream
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

ObjectStream

public ObjectStream()
Method Detail

getType

public abstract int getType()
Returns:
Git object type, see Constants.

getSize

public abstract long getSize()
Returns:
total size of object in bytes


Copyright © 2012. All Rights Reserved.