Examples of JarBuffer


Examples of org.jnode.util.JarBuffer

        return this.descriptor;
    }

    private Map<String, ByteBuffer> loadResources(ByteBuffer buffer) throws IOException {
        final BootableHashMap<String, ByteBuffer> map = new BootableHashMap<String, ByteBuffer>();
        final JarBuffer jbuf = new JarBuffer(buffer);
        for (Map.Entry<String, ByteBuffer> entry : jbuf.entries().entrySet()) {
            if (entry.getValue().limit() > 0) {
                map.put(entry.getKey(), entry.getValue());
            }
        }
        return map;
View Full Code Here

Examples of org.jnode.util.JarBuffer

     * Initialize this instance.
     *
     * @param initJarRes
     */
    public InitJarProcessor(MemoryResource initJarRes) {
        JarBuffer jbuf = null;
        Manifest mf = null;
        if (initJarRes != null) {
            try {
                jbuf = new JarBuffer(initJarRes.asByteBuffer());
                mf = jbuf.getManifest();
            } catch (IOException ex) {
                BootLogInstance.get().error("Cannot instantiate initjar", ex);
            }
        }
        this.jbuf = jbuf;
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.