public void setReserved(byte[] reserved) throws RcBwfException { if (reserved.length != RcRiffBextChunk.RESERVED_LENGTH) { throw new RcBwfException("BEXT reserved must be " + RcRiffBextChunk.RESERVED_LENGTH + " bytes in length."); } this.reserved = reserved; }
public void setUmid(byte[] umid) throws RcBwfException { if (umid.length != 32 && umid.length != 64) { throw new RcBwfException("BEXT SMPT UMID must be 32 or 64 bytes in length."); } this.umid = umid; }
public void setVersion(int version) throws RcBwfException { if (version < 0 || version > 0xFFFF) { throw new RcBwfException("Invalid BEXT version, value must be 0 - 65535"); } this.version = version; }
public void setOriginationTime(String originationTime) throws RcBwfException { if (originationTime.trim().length() > RcRiffBextChunk.ORIGINATION_TIME_LENGTH) { throw new RcBwfException("Maximum BEXT OriginationTime length is " + RcRiffBextChunk.ORIGINATION_TIME_LENGTH + " characters."); } // TODO - validate time format this.originationTime = originationTime; }
public void setOriginator(String originator) throws RcBwfException { if (originator.trim().length() > RcRiffBextChunk.ORIGINATOR_LENGTH) { throw new RcBwfException("Maximum BEXT originator length is " + RcRiffBextChunk.ORIGINATOR_LENGTH + " characters."); } this.originator = originator.trim(); }
public void setOriginatorReference(String originatorReference) throws RcBwfException { if (originatorReference.trim().length() > RcRiffBextChunk.ORIGINATOR_REFERENCE_LENGTH) { throw new RcBwfException("Maximum BEXT originator reference length is " + RcRiffBextChunk.ORIGINATOR_REFERENCE_LENGTH + " characters."); } this.originatorReference = originatorReference.trim(); }
public void setOriginationDate(String originationDate) throws RcBwfException { if (originationDate.trim().length() > RcRiffBextChunk.ORIGINATION_DATE_LENGTH) { throw new RcBwfException("Maximum BEXT OriginationDate length is " + RcRiffBextChunk.ORIGINATION_DATE_LENGTH + " characters."); } // TODO - validate date format this.originationDate = originationDate.trim(); }
public void setDescription(String description) throws RcBwfException { if (description.trim().length() > RcRiffBextChunk.DESCRIPTION_LENGTH) { throw new RcBwfException("Maximum BEXT description length is " + RcRiffBextChunk.DESCRIPTION_LENGTH + " characters"); } this.description = description.trim(); }