Package org.apache.avro.file.codec

Examples of org.apache.avro.file.codec.CustomCodec.compress()


    ByteBuffer original = ByteBuffer.allocate(testString.getBytes().length);
    original.put(testString.getBytes());
    original.rewind();
    ByteBuffer decompressed = null;
    try {
      ByteBuffer compressed = customCodec.compress(original);
      compressed.rewind();
      decompressed = customCodec.decompress(compressed);
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.