Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
ratingEntity = IsoTypeReader.read4cc(content);
ratingCriteria = IsoTypeReader.read4cc(content);
language = IsoTypeReader.readIso639(content);
ratingInfo = IsoTypeReader.readString(content);
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
byteBuffer.put(IsoFile.fourCCtoBytes(ratingEntity));
byteBuffer.put(IsoFile.fourCCtoBytes(ratingCriteria));
IsoTypeWriter.writeIso639(byteBuffer, language);
byteBuffer.put(Utf8.convert(ratingInfo));
byteBuffer.put((byte) 0);
|
protected long | getContentSize()
return 15 + Utf8.utf8StringLengthInBytes(ratingInfo);
|
public java.lang.String | getLanguage()
return language;
|
public java.lang.String | getRatingCriteria()Gets the four-character code that indicates which rating criteria are being used for the corresponding rating
entity, e.g., 'PG13'.
return ratingCriteria;
|
public java.lang.String | getRatingEntity()Gets a four-character code that indicates the rating entity grading the asset, e.g., 'BBFC'. The values of this
field should follow common names of worldwide movie rating systems, such as those mentioned in
[http://www.movie-ratings.net/, October 2002].
return ratingEntity;
|
public java.lang.String | getRatingInfo()
return ratingInfo;
|
public void | setLanguage(java.lang.String language)
this.language = language;
|
public void | setRatingCriteria(java.lang.String ratingCriteria)
this.ratingCriteria = ratingCriteria;
|
public void | setRatingEntity(java.lang.String ratingEntity)
this.ratingEntity = ratingEntity;
|
public void | setRatingInfo(java.lang.String ratingInfo)
this.ratingInfo = ratingInfo;
|
public java.lang.String | toString()
StringBuilder buffer = new StringBuilder();
buffer.append("RatingBox[language=").append(getLanguage());
buffer.append("ratingEntity=").append(getRatingEntity());
buffer.append(";ratingCriteria=").append(getRatingCriteria());
buffer.append(";language=").append(getLanguage());
buffer.append(";ratingInfo=").append(getRatingInfo());
buffer.append("]");
return buffer.toString();
|