com.sun.jini.jeri.internal.http
Class MessageReader.ChunkedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.jini.jeri.internal.http.MessageReader.ChunkedInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
MessageReader

private class MessageReader.ChunkedInputStream
extends InputStream

Input stream for reading chunked content data.


Field Summary
private  byte[] buf
           
private  int lim
           
private  int pos
           
 
Constructor Summary
MessageReader.ChunkedInputStream()
           
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
private  void refill()
           
 
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

buf

private byte[] buf

pos

private int pos

lim

private int lim
Constructor Detail

MessageReader.ChunkedInputStream

MessageReader.ChunkedInputStream()
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

refill

private void refill()
             throws IOException
Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.