Package org.apache.pivot.serialization

Examples of org.apache.pivot.serialization.PropertiesSerializer.writeObject()


    protected byte[] mapToPropertiesToBytes(Map<String, Object> testMap2)
            throws IOException, SerializationException {
        Serializer<Map<?, ?>> serializer = new PropertiesSerializer();

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        serializer.writeObject(testMap2, outputStream);
        outputStream.flush();
        outputStream.close();

        String result = outputStream.toString();
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.