public final class Comment2000Atom extends RecordAtom
Modifier | Constructor and Description |
---|---|
protected |
Comment2000Atom()
Constructs a brand new comment atom record.
(构造一个全新的评论原子记录。)
|
protected |
Comment2000Atom(byte[] source, int start, int len)
Constructs the comment atom record from its source data.
(从源数据构造评论原子记录。)
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Gets the date the comment was made.
(获取发表评论的日期。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getNumber()
Gets the comment number (note - each user normally has their own count).
(获取评论数量(注意 - 每个用户通常都有自己的数量)。)
|
long |
getRecordType()
Gets the record type.
(获取记录类型。)
|
int |
getXOffset()
Gets the X offset of the comment on the page.
(获取页面评论的 X 偏移量。)
|
int |
getYOffset()
Gets the Y offset of the comment on the page.
(获取页面上评论的 Y 偏移量。)
|
void |
setDate(java.util.Date date)
Sets the date the comment was made.
(设置发表评论的日期。)
|
void |
setNumber(int number)
Sets the comment number (note - each user normally has their own count).
(设置评论数量(注意 - 每个用户通常都有自己的数量)。)
|
void |
setXOffset(int xOffset)
Sets the X offset of the comment on the page.
(设置页面上评论的 X 偏移量。)
|
void |
setYOffset(int yOffset)
Sets the Y offset of the comment on the page.
(设置页面评论的 Y 偏移量。)
|
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk
(将记录的内容写回去,这样就可以写入磁盘了)
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
protected Comment2000Atom()
protected Comment2000Atom(byte[] source, int start, int len)
source
- the source data as a byte array.
(source - 作为字节数组的源数据。)
start
- the start offset into the byte array.
(start - 字节数组的起始偏移量。)
len
- the length of the slice in the byte array.
(len - 字节数组中切片的长度。)
public int getNumber()
public void setNumber(int number)
number
- the comment number.
(number - 评论编号。)
public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- the comment date.
(日期 - 评论日期。)
public int getXOffset()
public void setXOffset(int xOffset)
xOffset
- the X offset.
(xOffset - X 偏移量。)
public int getYOffset()
public void setYOffset(int yOffset)
yOffset
- the Y offset.
(yOffset - Y 偏移量。)
public long getRecordType()
getRecordType
in class
Record
(类 Record 中的 getRecordType)
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.