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

org.ssf4j.ObjectDataInput Maven / Gradle / Ivy

There is a newer version: 0.4
Show newest version
package org.ssf4j;

import java.io.DataInput;
import java.io.IOException;

public interface ObjectDataInput extends DataInput {
	/**
	 * Calls {@link #read(boolean, Class)} with {@code nulls == false}
	 * @param type
	 * @return
	 * @throws IOException
	 */
	public  T read(Class type) throws IOException;
	/**
	 * Calls {@link #read(boolean, boolean, Class)} with {@code polymorphic == false}
	 * @param nulls
	 * @param type
	 * @return
	 * @throws IOException
	 */
	public  T read(boolean nulls, Class type) throws IOException;
	/**
	 * Reads an object.  If {@code nulls == true} then the object read may be null.
	 * If {@code polymorphic == true} then the actual class of the object is read
	 * and used rather than the argument class.
	 * @param nulls
	 * @param polymorphic
	 * @param type
	 * @return
	 * @throws IOException
	 */
	public  T read(boolean nulls, boolean polymorphic, Class type) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy