xmlBlaster 1.6.4 API

org.xmlBlaster.util.protocol
Class ZBlockInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.xmlBlaster.util.protocol.ZBlockInputStream

public class ZBlockInputStream
extends java.io.FilterInputStream

Author:
Patrice Espié, modifications by Balázs Póka Licensing: LGPL

Field Summary
private  byte[] buffer
           
private  byte[] compBuffer
           
private  java.util.zip.Inflater inflater
           
private  int maxReadIndex
           
private  int readIndex
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
ZBlockInputStream(java.io.InputStream in)
           
 
Method Summary
 int available()
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
private  boolean readNextBuffer()
          This method is only called when the buffer is empty, otherwise bytes would be lost.
 
Methods inherited from class java.io.FilterInputStream
close, mark, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

private byte[] buffer

compBuffer

private byte[] compBuffer

readIndex

private int readIndex

maxReadIndex

private int maxReadIndex

inflater

private java.util.zip.Inflater inflater
Constructor Detail

ZBlockInputStream

public ZBlockInputStream(java.io.InputStream in)
Method Detail

markSupported

public boolean markSupported()

available

public int available()
              throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

readNextBuffer

private boolean readNextBuffer()
                        throws java.io.IOException
This method is only called when the buffer is empty, otherwise bytes would be lost.

Returns:
Throws:
java.io.IOException

xmlBlaster 1.6.4 API

Copyright © 1999-2008 The xmlBlaster.org contributers.