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

net.dona.doip.client.Element Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package net.dona.doip.client;

import com.google.gson.JsonObject;

import java.io.InputStream;

/**
 * A Java representation of an element of a Digital Object.
 */
public class Element {

    /**
     * The id of the element.
     */
    public String id;

    /**
     * The size of the element.  May be null when the size is unknown.
     */
    public Long length;

    /**
     * The type of the element.
     */
    public String type;

    /**
     * The attributes of the element.
     */
    public JsonObject attributes;

    /**
     * The bytes of the element, as an {@code InputStream}.
     */
    public transient InputStream in;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy