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

com.softicar.platform.common.io.stream.EmptyInputStream Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.io.stream;

import java.io.InputStream;

/**
 * The empty {@link InputStream}.
 *
 * @author Oliver Richers
 */
public class EmptyInputStream extends InputStream {

	private static final EmptyInputStream SINGLETON = new EmptyInputStream();

	private EmptyInputStream() {

		// singleton
	}

	public static EmptyInputStream get() {

		return SINGLETON;
	}

	@Override
	public int read() {

		return -1;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy