org.glassfish.jersey.media.json.internal
Class JsonRootEatingInputStreamFilter

java.lang.Object
  extended by java.io.InputStream
      extended by org.glassfish.jersey.media.json.internal.FilteringInputStream
          extended by org.glassfish.jersey.media.json.internal.JsonRootEatingInputStreamFilter
All Implemented Interfaces:
java.io.Closeable

public class JsonRootEatingInputStreamFilter
extends FilteringInputStream

JSON root eating filtering input stream.

Author:
Jakub Podlesak

Constructor Summary
JsonRootEatingInputStreamFilter(java.io.InputStream inputStream)
           
 
Method Summary
 int available()
           
protected  byte[] nextBytes()
          Get the next available chunk of bytes.
 
Methods inherited from class org.glassfish.jersey.media.json.internal.FilteringInputStream
mark, markSupported, read, read, read, reset, skip, toString
 
Methods inherited from class java.io.InputStream
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonRootEatingInputStreamFilter

public JsonRootEatingInputStreamFilter(java.io.InputStream inputStream)
                                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

nextBytes

protected byte[] nextBytes()
                    throws java.io.IOException
Description copied from class: FilteringInputStream
Get the next available chunk of bytes.

Specified by:
nextBytes in class FilteringInputStream
Returns:
the next available chunk of bytes.
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Overrides:
available in class FilteringInputStream
Throws:
java.io.IOException


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.