public static Animation fromStream(InputStream s) throws IOException 
	{
		DataInputStream d=new DataInputStream(s);
		String name = d.readUTF();
		int num = d.readInt();
		long[] timestamps = new long[num];
		int[] frames = new int[num];
		for(int i = 0; i < num; i++)
		{
			timestamps[i] = d.readLong();
			frames[i] = d.readInt();
		}
		return new Animation(name, frames, timestamps);
	}