Code example for DataInputStream

Methods: readUnsignedShort

0
		output.writeShort(this.value); 
	} 
 
	@Override 
	public AMF_Type read(AMF_Context context, DataInputStream input) throws IOException { 
		this.value = input.readUnsignedShort(); 
 
		return this; 
	} 
 
	public void set(int value) { 
		this.value = value; 
	} 
 
	public int get() { 
		return this.value; 
	} 
 
	@Override 
	public String toString() { 
		return String.valueOf(this.value);