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

org.archive.resource.AbstractEmptyResource Maven / Gradle / Ivy

There is a newer version: 1.1.9
Show newest version
package org.archive.resource;

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


public class AbstractEmptyResource extends AbstractResource {

	public AbstractEmptyResource(MetaData metaData, ResourceContainer container) {
		super(metaData, container);
	}

	public InputStream getInputStream() {
		byte bytes[] = new byte[0];
		return new ByteArrayInputStream(bytes);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy