public static Pattern readPattern(final DataInput pStream) throws IOException {
        // Get the data (8 bytes)
        byte[] data = new byte[8];
        pStream.readFully(data);
        return new BitMapPattern(data);
    }
public static Pattern readPattern ( final DataInput pStream ) throws IOException { byte [ ] data = new byte [ 8 ] ; pStream . readFully ( data ) ; return new BitMapPattern ( data ) ; }
Reads a {@link Pattern pattern} from the given stream.

@param pStream the input stream
@return the pattern read

@throws java.io.IOException if an I/O error occurs during read