Package com.twitter.chill

Examples of com.twitter.chill.SerDeState.writeObject()


    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 {
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.