Package de.undercouch.bson4jackson.io

Examples of de.undercouch.bson4jackson.io.BoundedInputStream


      }
     
      //wrap the input stream by a bounded stream, subtract buf.length from the
      //length because the size itself is included in the length
      int documentLength = ByteBuffer.wrap(buf).order(ByteOrder.LITTLE_ENDIAN).getInt();
      InputStream in = new BoundedInputStream(_rawInputStream, documentLength - buf.length);
     
      //buffer if the raw input stream is not already buffered
      if (!(_rawInputStream instanceof BufferedInputStream)) {
        in = new StaticBufferedInputStream(in);
      }
View Full Code Here

TOP

Related Classes of de.undercouch.bson4jackson.io.BoundedInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.