Package com.cybozu.vmbkp.util

Examples of com.cybozu.vmbkp.util.VmdkBitmap.writeTo()


            /* Save the changed bitmap file */
            FilterOutputStream fos =
                new FilterOutputStream
                (new FileOutputStream
                 (profGen.getBmpInPath(diskId)));
            bmp.writeTo(fos);
            fos.close();

            /* Check whether the bitmap is all zero or not.
               (All zero means the vmdk does not change at all.) */
            profGen.setIsChanged(diskId, bmp.isAllZero() == false);
View Full Code Here


    {
        try {
            VmdkBitmap bmp = new VmdkBitmap(1025 * MEGA, (int)MEGA);
            bmp.set(5);
            bmp.set(20);
            bmp.writeTo(new FilterOutputStream(System.out));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

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.