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

org.vertexium.inmemory.InMemoryStreamingPropertyValue Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.inmemory;

import org.vertexium.property.DefaultStreamingPropertyValue;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

public class InMemoryStreamingPropertyValue extends DefaultStreamingPropertyValue {
    private static final long serialVersionUID = 8822712986450929357L;
    private byte[] data;

    public InMemoryStreamingPropertyValue(byte[] data, Class valueType) {
        super(null, valueType, (long) data.length);
        this.data = data;
    }

    @Override
    public InputStream getInputStream() {
        return new ByteArrayInputStream(this.data);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy