com.infoengine.soap.util
Class ChunkedInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bycom.infoengine.soap.util.ChunkedInputStream

public class ChunkedInputStream
extends FilterInputStream

       Chunked-Body   = *chunk
                        last-chunk
                        trailer
                        CRLF

       chunk          = chunk-size [ chunk-extension ] CRLF
                        chunk-data CRLF
       chunk-size     = 1*HEX
       last-chunk     = 1*("0") [ chunk-extension ] CRLF

       chunk-extension= *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
       chunk-ext-name = token
       chunk-ext-val  = token | quoted-string
       chunk-data     = chunk-size(OCTET)
       trailer        = *(entity-header CRLF)


Field Summary
private  long chunk_len
           
private  boolean eof
           
(package private)  byte[] one
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
ChunkedInputStream(InputStream is)
           
 
Method Summary
 int available()
           
 void close()
           
(package private) static long getChunkLength(InputStream input)
           
static void main(String[] args)
           
 int read()
           
 int read(byte[] buf, int off, int len)
           
 long skip(long num)
           
 
Methods inherited from class java.io.FilterInputStream
mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

one

byte[] one

chunk_len

private long chunk_len

eof

private boolean eof
Constructor Detail

ChunkedInputStream

public ChunkedInputStream(InputStream is)
Parameters:
is - the input stream to dechunk
Method Detail

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(byte[] buf,
                int off,
                int len)
         throws IOException
Throws:
IOException

skip

public long skip(long num)
          throws IOException
Throws:
IOException

available

public int available()
              throws IOException
Throws:
IOException

getChunkLength

static final long getChunkLength(InputStream input)
                          throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception