com.aragost.javahg.internals
Class BlockInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.aragost.javahg.internals.BlockInputStream
All Implemented Interfaces:
Closeable

public class BlockInputStream
extends InputStream

An input stream reading one channel block.


Nested Class Summary
static class BlockInputStream.InvalidStreamException
          Exception to indicate that channel and length could not be read from the underlying stream.
 
Field Summary
static BlockInputStream EMPTY
           
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final BlockInputStream EMPTY
Method Detail

read

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

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Throws:
IOException

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException


Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.