private int parseContentType(final byte[] b,final int off) throws ParseException {
  contentTypeVal_=PrimitivesParser.parseByte(b,off);
  if (ContentType.deserialize(contentTypeVal_) == null) {
    throw new BadCiphertextException("Invalid content type in ciphertext.");
  }
  return 1;
}

private int parseContentType ( final byte [ ] b , final int off ) throws ParseException { contentTypeVal_ = PrimitivesParser . parseByte ( b , off ) ; if ( ContentType . deserialize ( contentTypeVal_ ) == null ) { throw new BadCiphertextException ( "Invalid content type in ciphertext." ) ; } return 1 ; }
parse the content type in the provided bytes . it looks for a single byte in the provided bytes starting at the specified off . < p > if successful , it returns 1 indicating that a byte was parsed . on failure , it throws a parse exception .
