Package com.twitter.chill

Examples of com.twitter.chill.SerDeState


            outputStream = new DataOutputStream(out);
    }

    public void serialize(Object o) throws IOException {
        // The outputs are borrowed in a clean state, ready to use
        SerDeState st = kryoPool.borrow();
        try {
          st.writeObject(o);
          // Copy from buffer to output stream.
          outputStream.writeInt(st.numOfWrittenBytes());
          st.writeOutputTo(outputStream);
        }
        finally {
          kryoPool.release(st);
        }
        outputStream.flush();
View Full Code Here

TOP

Related Classes of com.twitter.chill.SerDeState

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.