Package net.sourceforge.processdash.util

Examples of net.sourceforge.processdash.util.XorInputStream


        return openZipStream(compressedIn, f.getName());
    }

    private static ZipInputStream openZipStream(InputStream in, String filename) {
        if (filename.toLowerCase().endsWith(PDASH_BACKUP_EXTENSION))
            in = new XorInputStream(in, PDASH_BACKUP_XOR_BITS);

        return new ZipInputStream(in);
    }
View Full Code Here


            "pdash-compressed-wd", ".tmp");

        File srcZip = getTargetZipFile();
        InputStream in = new FileInputStream(srcZip);
        if (isPdbk(srcZip))
            in = new XorInputStream(in, PDBK_XOR_BITS);

        boolean sawEntry = false;
        try {
            ZipInputStream zipIn = new ZipInputStream(new BufferedInputStream(
                    in));
View Full Code Here

        boolean foundExpectedFile = false;
        InputStream in = null;
        try {
            // open the file in question
            in = new BufferedInputStream(new FileInputStream(f));
            if (isPdbk(f)) in = new XorInputStream(in, PDBK_XOR_BITS);
            // we use a ZipInputStream and scan the entire file, to ensure
            // that the file is intact and not corrupt near the end.
            ZipInputStream zipIn = new ZipInputStream(in);
            ZipEntry e;
            while ((e = zipIn.getNextEntry()) != null)
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.util.XorInputStream

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.