All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.vertx.http.deployment.webjar.InMemoryTargetVisitor Maven / Gradle / Ivy

package io.quarkus.vertx.http.deployment.webjar;

import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

/**
 * Visitor which holds all web jar resources in memory.
 */
public class InMemoryTargetVisitor implements WebJarResourcesTargetVisitor {
    private Map content = new HashMap<>();

    public Map getContent() {
        return content;
    }

    @Override
    public void visitFile(String path, InputStream stream) throws IOException {
        content.put(path, stream.readAllBytes());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy