private void readP56(int type, FileInputStream reader, int width, int height) throws IOException, MyExceptions {
		int currentRow = 0;
		int currentColumn = 0;
		int currentColor = 0;
		int octet = readByte(reader);
		while(octet != -1) {
			switch(type) {
			case 5 :
				portableMap.setData(currentRow, currentColumn, octet);
				break;
			case 6 :
				switch(currentColor) {
				case 0 :
					portableMap.setRed(currentRow, currentColumn, octet);
					--currentColumn;
					break;
				case 1 :
					portableMap.setGreen(currentRow, currentColumn, octet);
					--currentColumn;
					break;
				case 2 :
					portableMap.setBlue(currentRow, currentColumn, octet);
					break;
				}
				currentColor = (currentColor + 1) % 3;
				break;
			}
			++currentColumn;
			if(currentColumn == width) {
				currentColumn = 0;
				++currentRow;
			}
			if(currentRow == height)
				octet = -1;
			else
				octet = readByte(reader);
		}
	}