
net.nemerosa.httpclient.Document Maven / Gradle / Ivy
The newest version!
package net.nemerosa.httpclient;
import lombok.Data;
@Data
public class Document {
private final String type;
private final byte[] content;
public final static Document EMPTY = new Document("", new byte[0]);
public boolean isEmpty() {
return "".equals(type) || content == null || content.length == 0;
}
public static boolean isValid(Document document) {
return document != null && !document.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy