throws ParseException {
if (cl.hasOption("expl-item-len") && cl.hasOption("undef-item-len")
|| cl.hasOption("expl-seq-len") && cl.hasOption("undef-seq-len"))
throw new ParseException(
rb.getString("conflicting-enc-opts"));
return new DicomEncodingOptions(
cl.hasOption("group-len"),
!cl.hasOption("expl-seq-len"),
cl.hasOption("undef-seq-len"),
!cl.hasOption("expl-item-len"),
cl.hasOption("undef-item-len"));