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

prompto.intrinsic.IResource Maven / Gradle / Ivy

The newest version!
package prompto.intrinsic;

import java.io.IOException;
import java.io.Reader;
import java.util.function.Consumer;

public interface IResource {

	boolean isReadable();
	Reader asReader() throws IOException;
	String readLine() throws IOException;
	String readFully() throws IOException;
	void readFully(Consumer thenWith) throws IOException;
	PromptoBinary readBlob() throws IOException;
	boolean isWritable();
	void writeLine(String data) throws IOException;
	void writeFully(String data) throws IOException;
	void writeFully(String text, Consumer thenWith) throws IOException;
	void close();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy