Package com.alexkasko.delta

Examples of com.alexkasko.delta.DirDeltaCreator


            writeStringToFile(new File(target, "added"), "42", "UTF-8");
            writeStringToFile(new File(target, "unchanged"), "foo", "UTF-8");
            writeStringToFile(new File(target, "updated"), "ba42", "UTF-8");
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            // create diff
            new DirDeltaCreator().create(source, target, TRUE, baos);
            // read diff as zip
            byte[] delta = baos.toByteArray();
            ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(delta));
            // check contents
            ZipEntry indexEntry = zis.getNextEntry();
View Full Code Here

TOP

Related Classes of com.alexkasko.delta.DirDeltaCreator

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.