Code example for DataInputStream

Methods: readChar, readUTF

0
	public Attr(String name){
		this.name = name;
	} 
 
	public Attr(DataInputStream in) throws IOException {
		name = in.readUTF();
		in.readChar();
		value = in.readUTF();
	} 
 
	public Attr(String name , Object value){
		this.name = name;
		this.value = value;
	} 
 
	public String getName(){
		return name;
	} 
 
	public Object getValue(){
		return value;