Package net.gleamynode.netty.array

Examples of net.gleamynode.netty.array.ByteArrayOutputStream


        }
        this.capacityIncrement = capacityIncrement;
    }

    public void writeObject(Object obj) throws IOException {
        ByteArrayOutputStream bout = new ByteArrayOutputStream(capacityIncrement, false);
        ObjectOutputStream oout = new CompactObjectOutputStream(bout);
        oout.writeObject(obj);
        oout.flush();
        oout.close();
   
        ByteArray array = bout.array();
        writeInt(array.length());
        array.copyTo(this);
    }
View Full Code Here

TOP

Related Classes of net.gleamynode.netty.array.ByteArrayOutputStream

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.