static public int[] getScanline (Reader in, int len) throws IOException
public static int[] getScanline (Reader in, int len) throws IOException
  static public int[] getScanline (Reader in, int len) throws IOException  {    char byteStr[] = new char[2];    int scanline[] = new int[len];    int x = 0;    while (x < len)      {	int ch = in.read ();	if (ch == '0')	  {	    in.read ();		// 'x'	    	    byteStr[0] = (char) in.read ();	    byteStr[1] = (char) in.read ();	    int byteVal = Integer.parseInt (new String (byteStr), 16);	    for (int i = 0; i < 8; i++, x++)	      {		if (x == len)	// condition occurs if bitmap is padded		  return scanline;		scanline[x] = ((byteVal & masktable[i]) != 0) ? 		               black : transparent;	      }	  }	      }    return scanline;  }