public ByteArrayArgument(int type,ArgumentType argumentType,byte[] value){
  super(type);
  this.argumentType=argumentType;
  if (argumentType != ArgumentType.TraditionalDpb && argumentType != ArgumentType.Wide && argumentType != ArgumentType.StringSpb) {
    throw new IllegalArgumentException("ByteArrayArgument only works for TraditionalDpb, Wide, or StringSpb was: " + argumentType);
  }
  if (value == null) {
    throw new IllegalArgumentException("byte array value should not be null");
  }
  if (value.length > argumentType.getMaxLength()) {
    throw new IllegalArgumentException(String.format("byte array value should not be longer than %d bytes, length was %d",argumentType.getMaxLength(),value.length));
  }
  this.value=value;
}

public ByteArrayArgument ( int type , ArgumentType argumentType , byte [ ] value ) { super ( type ) ; this . argumentType = argumentType ; if ( argumentType != ArgumentType . TraditionalDpb && argumentType != ArgumentType . Wide && argumentType != ArgumentType . StringSpb ) { throw new IllegalArgumentException ( "ByteArrayArgument only works for TraditionalDpb, Wide, or StringSpb was: " + argumentType ) ; } if ( value == null ) { throw new IllegalArgumentException ( "byte array value should not be null" ) ; } if ( value . length > argumentType . getMaxLength ( ) ) { throw new IllegalArgumentException ( String . format ( "byte array value should not be longer than %d bytes, length was %d" , argumentType . getMaxLength ( ) , value . length ) ) ; } this . value = value ; }
initializes an instance of bytearrayargument .
