org.infinispan.schematic.internal.document
Class BsonReader
java.lang.Object
org.infinispan.schematic.internal.document.BsonReader
@ThreadSafe
public class BsonReader
- extends Object
A component that reads BSON representations and constructs the in-memory Document
representation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALUE_FACTORY
protected static final DocumentValueFactory VALUE_FACTORY
BsonReader
public BsonReader()
read
public Document read(InputStream stream)
throws IOException
- Read the binary BSON representation from supplied input stream and construct the
Document
representation.
- Parameters:
stream
- the input stream; may not be null
- Returns:
- the in-memory
Document
representation
- Throws:
IOException
- if there was a problem reading from the stream
read
public Document read(DataInput input)
throws IOException
- Read the binary BSON representation from supplied input stream and construct the
Document
representation.
- Parameters:
input
- the input stream; may not be null
- Returns:
- the in-memory
Document
representation
- Throws:
IOException
- if there was a problem reading from the stream
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.