Examples of PairtreeObject


Examples of info.freelibrary.util.PairtreeObject

            if (myHTTPConx.getResponseCode() != 200) {
                fail("Jetty is not accepting requests");
            }

            for (int index = 0; index < SOURCE_FILES.length; index++) {
                final PairtreeObject ptObj = ptRoot.getObject(ID[index]);
                final File jp2 = new File(ptObj, PairtreeUtils.encodeID(ID[index]));

                if (ptObj.exists()) {
                    if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("Removing pre-existing tile cache for test image");
                    }

                    if (!FileUtils.delete(ptObj)) {
                        fail("Unable to delete test image's tile cache: " + ptObj);
                    } else if (!ptObj.mkdirs()) {
                        fail("Unable to create test image's pairtree directory: " + ptObj);
                    }
                }

                if (LOGGER.isDebugEnabled()) {
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.