Code example for DataInputStream

Methods: readByte, readUTF

0
			throw new IllegalStateException( "never happens" );
		} 
	} 
	 
	public void load( DataInputStream in ) throws IOException{
		placeholder = new Path( in.readUTF() );
		switch( in.readByte() ){
			case 0: 
				backup = null;
				break; 
			case 1: 
				backup = new SplitDockProperty();
				backup.load( in );
				break; 
			case 2: 
				backup = new SplitDockPathProperty();
				backup.load( in );
				break; 
			default: 
				throw new IllegalArgumentException( "unknown type of backup property" );
		} 
	}