public Reader(String url)
	{
		try
		{
			input = new FileInputStream(url);
			
			cursor = new DataInputStream(input);
		/*************************************************************/
			
			try
			{
				// signature sur 2 char
				String prefixe = ""+ cursor.readChar();
				prefixe += cursor.readChar();
				
				this.sizeX = cursor.readInt();
				
				this.sizeY = cursor.readInt();
				int sizetab = cursor.readInt();
				byte[] data = new byte[1];
				byte[] pixel = new byte[1];
				byte[] bytecourant = new byte[1];
				byte[] resligne = null;
				byte[][] res = new byte[sizetab][];
				int longueurligne;
				// lecture arbre
				for(int i=0;i<sizetab;i++)
				{
					cursor.read(pixel);
					cursor.read(data);
					longueurligne =(int)Math.ceil(((double)convertByteToInt(data))/8)+2;
					resligne = new byte[longueurligne];
					resligne[0] = pixel[0];
					resligne[1] = data[0];
					for(int j=2;j<longueurligne;j++)
					{
						cursor.read(bytecourant);
						resligne[j] = bytecourant[0];
					}
					res[i] = resligne;
					
				}
				this.arbre = res;
				// lecture sequence
				
				ArrayList<Byte> bytesSeqList = new ArrayList<Byte>();
				
				while(cursor.read(data) != -1)
				{
					bytesSeqList.add(data[0]);
				}
				byte[] res2 = new byte[bytesSeqList.size()];
				
				for(int i=0; i<bytesSeqList.size(); i++)
					res2[i] = bytesSeqList.get(i);
				
				this.sequence=res2;
				
				
			} catch (IOException e)
			{
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		} catch (FileNotFoundException e)
		{
			System.out.println("le fichier n'a pas pu être ouvert");
			
		}
		
		
		
	}