use of com.ning.compress.lzf.LZFInputStream in project GeoGig by boundlessgeo.
the class MongoObjectDatabase method fromBytes.
private RevObject fromBytes(ObjectId id, byte[] buffer) {
ByteArrayInputStream byteStream = new ByteArrayInputStream(buffer);
RevObject result;
try {
result = serializers.createObjectReader().read(id, new LZFInputStream(byteStream));
} catch (Exception e) {
throw Throwables.propagate(e);
}
return result;
}
Aggregations