public JPEGQTable(int[] table){
  if (table == null) {
    throw new IllegalArgumentException("table must not be null.");
  }
  if (table.length != 64) {
    throw new IllegalArgumentException("table.length != 64");
  }
  qTable=Arrays.copyOf(table,table.length);
}

public JPEGQTable ( int [ ] table ) { if ( table == null ) { throw new IllegalArgumentException ( "table must not be null." ) ; } if ( table . length != 64 ) { throw new IllegalArgumentException ( "table.length != 64" ) ; } qTable = Arrays . copyOf ( table , table . length ) ; }
constructs a quantization table from the argument , which must contain 64 elements in natural order ( not zig - zag order ) . a copy is made of the the input array .
