aDownload.setClients( readInt32( inputStream ) );
	public static Download readDownload( InputStream inputStream ) throws IOException {		Download aDownload = new Download();		aDownload.setId( readInt32( inputStream ) );		aDownload.setNetwork( readInt32( inputStream ) );		aDownload.setNames( readStringList( inputStream ) );		aDownload.setMd4( readBinary( inputStream, 16 ) );		aDownload.setSize( readInt32( inputStream ) );		aDownload.setDownloaded( readInt32( inputStream ) );		aDownload.setSources( readInt32( inputStream ) );				/* File State */		State state = new State();		state.setState( ( byte ) readByte( inputStream ) );		if ( state.getState() == 6 )			state.setReason( readString( inputStream ) );					aDownload.setState( state );				aDownload.setChunks( readString( inputStream ) );		aDownload.setAvail( readString( inputStream ) );		aDownload.setRate( new Float( readString( inputStream ) ).floatValue() );		aDownload.setChunkage( readStringList( inputStream ) );		aDownload.setAge( readString( inputStream ) );				/* File Format */		Format format = new Format();		format.setFormat( (  byte ) readByte( inputStream ) );		if ( format.getFormat() == 1 ) {			format.setExtension( readString( inputStream ) );			format.setKind( readString( inputStream ) );		}		else if ( format.getFormat() == 2 ) {			format.setCodec( readString( inputStream ) );			format.setVwidth( readInt32( inputStream ) );			format.setVheight( readInt32( inputStream ) );			format.setVfps( readInt32( inputStream ) );			format.setVrate( readInt32( inputStream ) );		}		else if ( format.getFormat() == 3 ) {			format.setTitle( readString( inputStream ) );			format.setArtist( readString( inputStream ) );			format.setAlbum( readString( inputStream ) );			format.setYear( readString( inputStream ) );			format.setComment( readString( inputStream ) );			format.setTracknum( readInt32( inputStream ) );			format.setGenre( readInt32( inputStream ) );		}		aDownload.setFormat( format );				aDownload.setName( readString( inputStream ) );		aDownload.setOffset( readInt32( inputStream ) );		aDownload.setPriority( readInt32( inputStream ) );			return aDownload;		}